Author: rob.stryker(a)jboss.com
Date: 2012-05-14 15:06:08 -0400 (Mon, 14 May 2012)
New Revision: 41002
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java
Log:
JBIDE-11853 argsutil npe
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java 2012-05-14
19:04:01 UTC (rev 41001)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/ArgsUtil.java 2012-05-14
19:06:08 UTC (rev 41002)
@@ -31,7 +31,9 @@
public static final String QUOTE="\""; //$NON-NLS-1$
public static String[] parse(String s) {
- s = s.trim();
+ if( s == null )
+ return new String[0];
+
try {
ArrayList<String> l = new ArrayList<String>();
int length = s.length();