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

Error when you cancel minishift location selection while creating cdk server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.5.3.AM3
    • 4.5.3.AM3
    • cdk
    • None
    • Hide

      1. Open New Server dialog
      2. Select cdk 3.2+ and click next
      3. On next page, click Browse to select minishift binary
      4. Cancel the file picker
      5. Bang - an exception is thrown - see above

      Show
      1. Open New Server dialog 2. Select cdk 3.2+ and click next 3. On next page, click Browse to select minishift binary 4. Cancel the file picker 5. Bang - an exception is thrown - see above

    Description

      I just noticed there is an error when you start the New Server dialog, select cdk 3.2+ and on the next page you first try to Browse for the minishift binary and then you change your mind and cancel that window.

      Unhandled event loop exception
      java.lang.NullPointerException
      	at java.io.File.<init>(File.java:277)
      	at org.jboss.tools.openshift.cdk.server.ui.internal.CDK3ServerWizardFragment.kickValidationJob(CDK3ServerWizardFragment.java:218)
      	at org.jboss.tools.openshift.cdk.server.ui.internal.CDK3ServerWizardFragment.access$3(CDK3ServerWizardFragment.java:214)
      	at org.jboss.tools.openshift.cdk.server.ui.internal.CDK3ServerWizardFragment$3.widgetSelected(CDK3ServerWizardFragment.java:197)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4258)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1502)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1525)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1510)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1314)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4082)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3699)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
      	at org.eclipse.jface.window.Window.open(Window.java:794)
      	at org.eclipse.wst.server.ui.internal.actions.LaunchWizardAction.run(LaunchWizardAction.java:58)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
      	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4258)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1502)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1525)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1510)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1314)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4082)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3699)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
      

      Attachments

        Activity

          People

            rob.stryker Rob Stryker (Inactive)
            exd-mmalina Martin Malina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: