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

NullPointerException in JobResultFuture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.1.CR1
    • 4.3.1.Beta2
    • common, openshift
    • None

      java.lang.NullPointerException
      	at org.jboss.tools.common.ui.JobResultFuture.cancel(JobResultFuture.java:49)
      	at org.jboss.tools.common.ui.WizardUtils.waitForFuture(WizardUtils.java:157)
      	at org.jboss.tools.common.ui.WizardUtils.access$0(WizardUtils.java:151)
      	at org.jboss.tools.common.ui.WizardUtils$1.run(WizardUtils.java:139)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
      

      For some time I could reproduce the exception in this steps:
      1. Close Eclipse with OpenShift Explorer active and password for a connection unsaved.
      2. Open Eclipse - Sign In to OpenShift wizard appears.
      3. Enter password and finish.
      4. Progress appears but job does not start (I checked it in debugger) - ui jobs locked.
      5. Only red button cancelling connection is active, press it - null pointer exception, ui is unlocked.
      6. Start Sign In to OpenShift wizard with context menu - it can be completed successfully, connection is established.

      Later, after I received latest commits, the ui jobs lock could not be reproduced, so for now I do not report this usecase as a bug. But it is still possible to reproduce the same null pointer using breakpoints in debugger, because it happens if job is cancelled through JobResultFuture before job manager can start it.

              scabanovich Viacheslav Kabanovich (Inactive)
              scabanovich Viacheslav Kabanovich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: