Author Message
Anonymous

Hi.
We have a large app being developed by several people. We are using OD 6.0.0.1301. One of the developers has recently had a NPE appearing when he tries to put a subflow node. Whenever he puts the node, the properties box is empty (it should have the name of the subflow and a combo to select the actual subflow). Te standard solution of restarting Eclipse is not working/ The error log has the following:

java.lang.NullPointerException

at com.avaya.sce.callflow.internal.CallflowController.getProjectFlowFiles(CallflowController.java:1754)
at com.avaya.sce.callflow.ui.CallflowUIController.getRefreshedProjectSubflows(CallflowUIController.java:315)
at com.avaya.sce.callflow.ui.CallflowUIController.getRefreshedResourceCollection(CallflowUIController.java:229)
at com.avaya.sce.callflow.ui.CallflowUIController.getProjectResourceCollection(CallflowUIController.java:201)
at com.avaya.sce.callflow.ui.CallflowUIController.getProjectSubFlows(CallflowUIController.java:387)
at com.avaya.sce.callflow.ui.editpart.SubFlowRefEditPart.getProjectSubflows(SubFlowRefEditPart.java:119)
at com.avaya.sce.callflow.ui.editpart.SubFlowRefEditPart.addPropertyDescriptors(SubFlowRefEditPart.java:96)
at com.avaya.sce.callflow.ui.editor.FlowElementEditPart$1.getPropertyDescriptors(FlowElementEditPart.java:185)
at org.eclipse.ui.views.properties.PropertySheetEntry.computeMergedPropertyDescriptors(PropertySheetEntry.java:167)
at org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:530)
at org.eclipse.ui.views.properties.PropertySheetEntry.refreshFromRoot(PropertySheetEntry.java:592)
at org.eclipse.gef.ui.properties.UndoablePropertySheetEntry.access$0(UndoablePropertySheetEntry.java:1)
at org.eclipse.gef.ui.properties.UndoablePropertySheetEntry$1.commandStackChanged(UndoablePropertySheetEntry.java:114)
at org.eclipse.gef.commands.CommandStack.notifyListeners(CommandStack.java:310)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:209)
at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:425)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:438)
at org.eclipse.gef.tools.DragEditPartsTracker.performDrag(DragEditPartsTracker.java:491)
at org.eclipse.gef.tools.DragEditPartsTracker.handleButtonUp(DragEditPartsTracker.java:346)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1201)
at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:572)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
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(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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

JuanMorales2
Joined: Dec 16, 2013
Messages: 44
Offline
Sorry, posted it as anonymous without noticing.
MichaelGruzman
Joined: Nov 11, 2013
Messages: 14
Offline
in your case module should be better then subflow. Read Dev Guide/Working with subflows vs. modules. It may help
Anonymous

In theory that might work, but sometimes that is not a useful workaround.
JuanMorales2
Joined: Dec 16, 2013
Messages: 44
Offline
We were able to fix the error. The problem was that, by mistake, a team member had added two unrelated files (empty ones actually) to the flow directory. We deleted those files and the problem went away
MichaelGruzman
Joined: Nov 11, 2013
Messages: 14
Offline
Juan, I'm glad to know the issue got resolved
Go to:   
Mobile view