Olivier Fayau created FELIX-4447:
------------------------------------
Summary: Regression in ScrShellCommand (NPE caused by falsy regex)
Key: FELIX-4447
URL: https://issues.apache.org/jira/browse/FELIX-4447
Project: Felix
Issue Type: Bug
Components: Declarative Services (SCR), Script Console Plugin
Affects Versions: scr-1.8.0, scr-1.8.2
Reporter: Olivier Fayau
Using felix console and DS (scr + shell +shell tui), the command scr doesn't
work anymore (NPE instead of result).
Sample :
scr list
-> Unable to execute command: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.felix.scr.impl.ScrShellCommand.help(ScrShellCommand.java:116)
at
org.apache.felix.scr.impl.ScrShellCommand.execute(ScrShellCommand.java:75)
at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:249)
at
org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
at java.lang.Thread.run(Unknown Source)
Looking at source code, in ScrShellCommand.execute(), command is splitted by
the falsy regex "//s".
This should be "\\s+" instead.
--
This message was sent by Atlassian JIRA
(v6.2#6252)