[jbosstools-commits] JBoss Tools SVN: r35889 - trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Oct 21 03:52:35 EDT 2011


Author: fbricon
Date: 2011-10-21 03:52:34 -0400 (Fri, 21 Oct 2011)
New Revision: 35889

Modified:
   trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
Log:
JBIDE-9991 : fix NPE in searching for best runtime

Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java	2011-10-21 07:25:09 UTC (rev 35888)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java	2011-10-21 07:52:34 UTC (rev 35889)
@@ -201,7 +201,7 @@
 			for (int i = 0; i < runtimes.length; i++) {
 				IRuntime runtime = runtimes[i];
 				IRuntimeType runtimeType = runtime.getRuntimeType();
-				if (runtimeType.getId().equals(allowedType)) {
+				if (runtimeType != null && runtimeType.getId().equals(allowedType)) {
 					IRuntime componentPresent = isComponentPresent(fix, runtime);
 					if (componentPresent != null) {
 						return isComponentPresent(fix, runtime);



More information about the jbosstools-commits mailing list