From 8e6818c3dfe5ec6172614a3225797ec39767e67a Mon Sep 17 00:00:00 2001 From: Konstantinos Kravvaritis Date: Sun, 9 Feb 2020 19:48:54 +0200 Subject: [PATCH] fix a bug where there were no parameters after the executable in cmd instructions --- src/main/java/gr/aueb/balab/jadolint/model/Cmd.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }