diff --git a/src/main/java/gr/aueb/balab/jadolint/model/Cmd.java b/src/main/java/gr/aueb/balab/jadolint/model/Cmd.java index bd9cd58..989ba0a 100644 --- a/src/main/java/gr/aueb/balab/jadolint/model/Cmd.java +++ b/src/main/java/gr/aueb/balab/jadolint/model/Cmd.java @@ -62,7 +62,9 @@ public Cmd(String line){ String[] splitLine = lineWithoutInstruction.split(" "); executable = splitLine[0].trim(); - params = splitLine[1].trim(); + + if(splitLine.length > 1) + params = splitLine[1].trim(); execForm = false; }