[#7297] [#7663] Fixed StackOverflowError

This commit is contained in:
lukaseder 2018-07-12 12:49:14 +02:00
parent 53bd929f5e
commit e7c4b42cec

View File

@ -110,8 +110,15 @@ final class WindowDefinitionImpl extends AbstractQueryPart implements WindowDefi
renderContextDefinitionOrName:
if (windows != null) {
windowLoop:
for (WindowDefinition w : windows) {
if (((WindowDefinitionImpl) w).getName().equals(name)) {
// Prevent StackOverflowError
if (w == this)
break windowLoop;
ctx.visit(w);
break renderContextDefinitionOrName;
}