-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.4.1
-
Fix Version/s: 5.6.0-HF40, 5.8.0-HF29, 6.0-HF03, 7.1
-
Component/s: Shell
-
Tags:
-
Sprint:DevOps Sprint 9
In org.nuxeo.shell.automation.cmds.Script.run(), when a script (Groovy or MVEL) returns no output, the following NPE is raised:
org.nuxeo.shell.ShellException: Failed to run script at org.nuxeo.shell.automation.cmds.Script.run(Script.java:74) at org.nuxeo.shell.Shell.run(Shell.java:495) at org.nuxeo.shell.Shell.run(Shell.java:490) at org.nuxeo.shell.Shell.run(Shell.java:484) at org.nuxeo.shell.cmds.Interactive.run(Interactive.java:118) at org.nuxeo.shell.Shell.run(Shell.java:495) at org.nuxeo.shell.Shell.run(Shell.java:490) at org.nuxeo.shell.Shell.run(Shell.java:484) at org.nuxeo.shell.Shell.main(Shell.java:273) at org.nuxeo.shell.Main.main(Main.java:25) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1234) at java.util.regex.Matcher.reset(Matcher.java:308) at java.util.regex.Matcher.<init>(Matcher.java:228) at java.util.regex.Pattern.matcher(Pattern.java:1088) at org.nuxeo.shell.utils.ANSICodes.appendTemplate(ANSICodes.java:134) at org.nuxeo.shell.automation.cmds.Script.run(Script.java:71) ... 9 more