Missing port name in connect statement is not handled
Submitted by Jeno Attila Balasko
Link to original bug (#495788)
Description
Missing port name in connect statement is not handled and this caused NPE. Guard the null pointer cases and return immediately from the process otherwise NPE occurs while typing the source code.
src: connect(CT:p,self:); //p is missing
Log:
java.lang.NullPointerException
at org.eclipse.titan.designer.AST.PortReference.<init>
(PortReference.java:24)
at org.eclipse.titan.designer.parsers.ttcn3parser.Ttcn3Reparser.pr_ConnectStatement(Ttcn3Reparser.java:20713)
at org.eclipse.titan.designer.parsers.ttcn3parser.Ttcn3Reparser.pr_ConfigurationStatements(Ttcn3Reparser.java:19917)
at org.eclipse.titan.designer.parsers.ttcn3parser.Ttcn3Reparser.pr_FunctionStatement(Ttcn3Reparser.java:12242)
Version: 5.5.0