From fb629b417feec583dab0fe3e72d97f91b8541960 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Fri, 17 Feb 2017 17:08:10 +0100 Subject: [PATCH] =?UTF-8?q?FormalParameter=20convert=20=C3=A4nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java index db5cc9fd8..681c6f2a3 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java @@ -249,7 +249,7 @@ public class SyntaxTreeGenerator{ private ParameterList convert(Java8Parser.FormalParameterListContext formalParameterListContext) { List ret = new ArrayList<>(); - if(formalParameterListContext != null){ + if(formalParameterListContext != null && formalParameterListContext.formalParameters() != null && formalParameterListContext.formalParameters().formalParameter() != null){ for(Java8Parser.FormalParameterContext fp : formalParameterListContext.formalParameters().formalParameter()){ String paramName = convert(fp.variableDeclaratorId()); RefTypeOrTPH type;