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

Projects wizard: NPE when deleting a project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.3.0.Beta2
    • 4.3.0.Beta2
    • openshift
    • None
    • Hide
      1. ASSERT: make sure that you have a connection to a v3 OpenShift server
      2. ASSERT: make sure that you have at least 1 project in your v3 OpenShift server
      3. EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection
      4. ASSERT: OpenShift projects wizard pops up listing your project(s)
      5. EXEC: select a project and hit "Remove..."

      Result:

      An error dialog pops up and reports an NPE. The projects is deleted though, you realise this once you refresh the connection in the explorer.

      In Eclipse log one can see the following:

      java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getResourceGrouping(OpenShiftExplorerContentProvider.java:126)
      	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:119)
      	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:65)
      	at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:260)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158)
      	at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116)
      	at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48)
      	at org.jboss.tools.openshift.internal.ui.wizard.project.ManageProjectsWizardPage$3$1.doRun(ManageProjectsWizardPage.java:177)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      Show
      ASSERT: make sure that you have a connection to a v3 OpenShift server ASSERT: make sure that you have at least 1 project in your v3 OpenShift server EXEC: in Explorer: pick "Manage Projects" in the context menu to your connection ASSERT: OpenShift projects wizard pops up listing your project(s) EXEC: select a project and hit "Remove..." Result: An error dialog pops up and reports an NPE. The projects is deleted though, you realise this once you refresh the connection in the explorer. In Eclipse log one can see the following: java.lang.NullPointerException at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getResourceGrouping(OpenShiftExplorerContentProvider.java:126) at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.refreshGrouping(OpenShiftExplorerContentProvider.java:119) at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.handleConnectionChanged(OpenShiftExplorerContentProvider.java:65) at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$ConnectionsRegistryListener.connectionChanged(BaseExplorerContentProvider.java:260) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireChange(ConnectionsRegistry.java:158) at org.jboss.tools.openshift.common.core.connection.ConnectionsRegistry.fireConnectionChanged(ConnectionsRegistry.java:116) at org.jboss.tools.openshift.internal.ui.job.DeleteResourceJob.doRun(DeleteResourceJob.java:48) at org.jboss.tools.openshift.internal.ui.wizard.project.ManageProjectsWizardPage$3$1.doRun(ManageProjectsWizardPage.java:177) at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

          jcantril@redhat.com Jeffrey Cantrill
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: