[jbosstools-commits] JBoss Tools SVN: r35891 - branches/jbosstools-3.3.0.M4/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 04:50:05 EDT 2011


Author: fbricon
Date: 2011-10-21 04:50:05 -0400 (Fri, 21 Oct 2011)
New Revision: 35891

Modified:
   branches/jbosstools-3.3.0.M4/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
Log:
JBIDE-9991 : applied patch. Fixes NPE occuring during search for best runtime

Modified: branches/jbosstools-3.3.0.M4/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java
===================================================================
--- branches/jbosstools-3.3.0.M4/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java	2011-10-21 08:05:18 UTC (rev 35890)
+++ branches/jbosstools-3.3.0.M4/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/fixes/WTPRuntimeFix.java	2011-10-21 08:50:05 UTC (rev 35891)
@@ -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