Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9991

NPE in JBoss Central (Refreshing JBoss Tutorials)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.3.0.M4
    • 3.3.0.M4
    • central
    • None

      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.

            fbricon@redhat.com Fred Bricon
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: