Author: rob.stryker(a)jboss.com
Date: 2010-10-27 00:48:14 -0400 (Wed, 27 Oct 2010)
New Revision: 26077
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeLocator.java
Log:
JBIDE-7363 - npe
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeLocator.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeLocator.java 2010-10-27
04:31:51 UTC (rev 26076)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeLocator.java 2010-10-27
04:48:14 UTC (rev 26077)
@@ -64,6 +64,7 @@
return createRuntime(path, loader);
}
File[] children = path.toFile().listFiles();
+ children = (children == null ? new File[]{} : children);
monitor.beginTask("Searching for JBoss runtime...", children.length);
//$NON-NLS-1$
if( children != null ) {
for( int i = 0; i < children.length; i++ ) {