Skip to content

Commit 6eaa4a6

Browse files
committed
Minor fix for splitFilesAndOptions.
(if no : and starts with \)
1 parent ba1dcd4 commit 6eaa4a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prism/src/prism/SwitchHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void handleFilesOnly(String sw, String files) throws PrismException
171171
static String[] splitFilesAndOptions(String arg)
172172
{
173173
int i = arg.indexOf(':');
174-
while (arg.length() > i + 1 && arg.charAt(i + 1) == '\\')
174+
while (i != -1 && arg.length() > i + 1 && arg.charAt(i + 1) == '\\')
175175
i = arg.indexOf(':', i + 1);
176176
if (i != -1)
177177
return new String[]{arg.substring(0, i), arg.substring(i + 1)};

0 commit comments

Comments
 (0)