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

NPE when opening OpenShift Application Explorer when user does not have odo downloaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 4.19.0.Final
    • 4.19.0.Final
    • openshift
    • None
    • Hide

      1. Do not have odo downloaded (remove ~/.odo)
      2. Open Studio
      3. Open Openshift App. Explorer view
      4. Assert: It offers to download odo dialog
      Actual: Error dialog for NPE instead.

      Show
      1. Do not have odo downloaded (remove ~/.odo) 2. Open Studio 3. Open Openshift App. Explorer view 4. Assert: It offers to download odo dialog Actual: Error dialog for NPE instead.
    • Workaround Exists
    • Hide

      1. close Error dialog
      2. Click to Openshift Appl. explorer view again
      3. Now downloading dialog pops up, accept downloading odo

      Show
      1. close Error dialog 2. Click to Openshift Appl. explorer view again 3. Now downloading dialog pops up, accept downloading odo
    • Undefined

      I got an error dialog with NPE on "Load Model" when opening OS Application Explorer view when I do not have odo downloaded.

      eclipse.buildId=12.19.0.GA-v20210408-1554-B85
      java.version=11.0.10
      java.vendor=Red Hat, Inc.
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
      
      org.eclipse.core.jobs
      Error
      Mon Apr 12 10:30:25 CEST 2021
      An internal error occurred during: "Load model".
      
      java.lang.NullPointerException
      	at org.jboss.tools.common.util.DownloadHelper.isDownloadAllowed(DownloadHelper.java:240)
      	at org.jboss.tools.common.util.DownloadHelper.askAndDownloadTool(DownloadHelper.java:216)
      	at org.jboss.tools.common.util.DownloadHelper.downloadIfRequired(DownloadHelper.java:205)
      	at org.jboss.tools.openshift.internal.ui.odo.OdoCli.getOdoCommand(OdoCli.java:149)
      	at org.jboss.tools.openshift.internal.ui.odo.OdoCli.getCommand(OdoCli.java:143)
      	at org.jboss.tools.openshift.internal.ui.odo.OdoCli.<init>(OdoCli.java:129)
      	at org.jboss.tools.openshift.internal.ui.odo.OdoCli.get(OdoCli.java:136)
      	at org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel$ClusterInfo.getOdo(ApplicationExplorerUIModel.java:68)
      	at org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel.getOdo(ApplicationExplorerUIModel.java:118)
      	at org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel.addContext(ApplicationExplorerUIModel.java:147)
      	at org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel.internalLoadProjects(ApplicationExplorerUIModel.java:166)
      	at org.jboss.tools.openshift.internal.ui.models.applicationexplorer.ApplicationExplorerUIModel.lambda$2(ApplicationExplorerUIModel.java:175)
      	at org.eclipse.core.runtime.jobs.Job$1.run(Job.java:166)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

              jmaury@redhat.com Jeff MAURY
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: