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

Adding sampling EIP causes NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1
    • None
    • Camel Editor
    • None

    Description

      I added the sampling EIP to a route and got this NPE

      java.lang.NullPointerException
      	at org.apache.camel.model.SamplingDefinition.getLabel(SamplingDefinition.java:69)
      	at com.fusesource.rider.model.AbstractNode.getDisplayText(AbstractNode.java:509)
      	at com.fusesource.rider.editor.parts.tree.AbstractNodeTreeEditPart.refreshVisuals(AbstractNodeTreeEditPart.java:102)
      	at com.fusesource.rider.editor.parts.tree.AbstractNodeTreeEditPart.setModel(AbstractNodeTreeEditPart.java:169)
      	at com.fusesource.rider.editor.parts.tree.RouteTreeEditPartFactory.createEditPart(RouteTreeEditPartFactory.java:30)
      	at org.eclipse.gef.editparts.AbstractEditPart.createChild(AbstractEditPart.java:268)
      	at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:770)
      	at com.fusesource.rider.editor.parts.tree.ContainerTreeEditPart.propertyChange(ContainerTreeEditPart.java:49)
      	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
      	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
      	at com.fusesource.rider.model.AbstractNode.fireChildAdded(AbstractNode.java:354)
      	at com.fusesource.rider.model.Container.addChild(Container.java:138)
      	at com.fusesource.rider.model.Container.addChild(Container.java:107)
      	at com.fusesource.rider.model.Container.addChild(Container.java:95)
      	at com.fusesource.rider.model.AbstractNode.setParent(AbstractNode.java:469)
      	at com.fusesource.rider.editor.editor.palette.AbstractRiderAddNodeMenuFactory$1.runWithEvent(AbstractRiderAddNodeMenuFactory.java:147)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
      	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
      

      Attachments

        Activity

          People

            jastrachan_jira James Strachan (Inactive)
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: