[
https://issues.jboss.org/browse/JBIDE-9991?page=com.atlassian.jira.plugin...
]
Fred Bricon edited comment on JBIDE-9991 at 10/21/11 3:53 AM:
--------------------------------------------------------------
Fixed in trunk.
Attached patch with null check to apply to 3.3.0.M4 branch.
was (Author: fbricon):
Attached patch with null check
NPE in JBoss Central (Refreshing JBoss Tutorials)
-------------------------------------------------
Key: JBIDE-9991
URL:
https://issues.jboss.org/browse/JBIDE-9991
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: central
Affects Versions: 3.3.0.M4
Reporter: Fred Bricon
Assignee: Snjezana Peco
Priority: Critical
Fix For: 3.3.0.M4
Attachments: JBIDE-9991-NPECheck.patch
Since yesterday, I've been experiencing NPE's on JBoss Central startups :
{noformat}
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)
{noformat}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira