Commit 42ea5499 authored by Joachim Müssig's avatar Joachim Müssig
Browse files

Fix bug for static methods without parameters (set of formal in nodes are empty)

parent 4232a5fc
......@@ -399,7 +399,11 @@ public class JavaForKeYCreator {
private String generateAllInputs(StaticCGJavaMethod methodCall, Collection<SDGNode> formIns) {
String allInput;
if(!formIns.iterator().hasNext()) {
//static method without params has no this formal in node
if(formIns == null) {
allInput = NOTHING;
else if(!formIns.iterator().hasNext()) {
allInput = NOTHING;
} else {
SDGNode formIn = formIns.iterator().next();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment