Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33BD6106D2 for ; Mon, 10 Mar 2014 19:36:52 +0000 (UTC) Received: (qmail 20307 invoked by uid 500); 10 Mar 2014 19:36:49 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 20052 invoked by uid 500); 10 Mar 2014 19:36:45 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 19662 invoked by uid 99); 10 Mar 2014 19:36:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 19:36:42 +0000 Date: Mon, 10 Mar 2014 19:36:42 +0000 (UTC) From: "Vincent G. (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4447) Regression in ScrShellCommand (NPE caused by falsy regex) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13926092#comment-13926092 ] Vincent G. commented on FELIX-4447: ----------------------------------- Simple workaround : Instead of "scr list" type "scr //slist". Instead of "scr list 1" type "scr //slist//s1". > 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 > Labels: easyfix > > Using felix console and DS (scr + shell +shell tui), the command scr doesn't work anymore. > 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)