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

NPE is thrown on OS 3 connection without any project on fresh start of IDE

XMLWordPrintable

      When I start IDE and I have not stored password/token in secure storage for an OpenShift 3 connection, I am prompted to fill in credentials. After successfully filling in and hiting Finish button, connection is established, but if connection does not contain any project beneath it, there is NPE thrown with following stack trace

      There was an error retrieving children in the OpenShift explorer
      
      java.lang.NullPointerException
      	at java.util.ArrayList.<init>(ArrayList.java:177)
      	at org.jboss.tools.openshift.internal.ui.models.OpenShiftProjectCache.getProjectsFor(OpenShiftProjectCache.java:73)
      	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getChildrenFor(OpenShiftExplorerContentProvider.java:93)
      	at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$1.run(BaseExplorerContentProvider.java:167)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      

            scabanovich Viacheslav Kabanovich (Inactive)
            mlabuda_jira Marián Labuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: