Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Done
-
Affects Version/s: 3.3.0.M4
-
Fix Version/s: 3.3.0.M4
-
Component/s: central
-
Labels:None
Description
Since yesterday, I've been experiencing NPE's on JBoss Central startups :
java.lang.NullPointerException
|
at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.getBestRuntime(WTPRuntimeFix.java:204)
|
at org.jboss.tools.project.examples.fixes.WTPRuntimeFix.canFix(WTPRuntimeFix.java:70)
|
at org.jboss.tools.project.examples.ProjectExamplesActivator.canFix(ProjectExamplesActivator.java:488)
|
at org.jboss.tools.central.jobs.RefreshTutorialsJob.run(RefreshTutorialsJob.java:82)
|
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
|
It turns out that runtime.getRuntimeType() returns null for some Weblogic server I installed yesterday (with OEPE).
A null check should be added whereever runtime.getRuntimeType() is called.
Fixed in trunk.
Attached patch with null check to apply to 3.3.0.M4 branch.