Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2431

NPE in NewCamelTestWizardPageTwo.getInputs when trying to create a new camel test case for a file using "routes" tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 10.3.0.AM1, 10.3.0
    • 9.2.0
    • None
    • None
      • create a camel project
      • use a "routes" tag (so no camelcontext one)
      • right-click on the file, New -> Camel Test Case

      java.lang.NullPointerException
      	at org.fusesource.ide.branding.wizards.NewCamelTestWizardPageTwo.getInputs(NewCamelTestWizardPageTwo.java:377)
      	at org.fusesource.ide.branding.wizards.NewCamelTestWizardPageTwo.loadEndpointSummary(NewCamelTestWizardPageTwo.java:368)
      	at org.fusesource.ide.branding.wizards.NewCamelTestWizardPageTwo.onXmlFileUnderTestChanged(NewCamelTestWizardPageTwo.java:413)
      	at org.fusesource.ide.branding.wizards.NewCamelTestWizardPageTwo.createEndpointsTreeControls(NewCamelTestWizardPageTwo.java:268)
      	at org.fusesource.ide.branding.wizards.NewCamelTestWizardPageTwo.createControl(NewCamelTestWizardPageTwo.java:176)
      	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:175)
      	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:696)
      	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:588)
      	at org.eclipse.jface.window.Window.create(Window.java:426)
      	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1095)
      	at org.eclipse.ui.internal.navigator.wizards.WizardShortcutAction.run(WizardShortcutAction.java:96)
      	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:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	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(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      
      

              apupier@redhat.com Aurélien Pupier
              apupier@redhat.com Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: