| Summary: | NPE in NavigationViewPart#createPartControl | ||
|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Elias Volanakis <elias> |
| Component: | navigation | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | christian.campo, nobody |
| Version: | unspecified | ||
| Target Milestone: | 3.0.0.M6 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Elias Volanakis
Hi Riena colleagues, any input here? If you are familiar with the navigation id things, please leave a comment :-). Hi Elias, can you tell me which object is null? I'm not at my riena desktop right now... I'll have a look ... I get a NPE in the TreeRidget .... Caused by: java.lang.NullPointerException at org.eclipse.riena.internal.ui.ridgets.swt.TreeRidget.getRowObservables(TreeRidget.java:218) at org.eclipse.riena.ui.ridgets.swt.AbstractSelectableRidget.assertIsBoundToModel(AbstractSelectableRidget.java:233) at org.eclipse.riena.ui.ridgets.swt.AbstractSelectableRidget.setSelection(AbstractSelectableRidget.java:189) at org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.setSelectedNode(SWTModuleController.java:205) at org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.setSelectedNode(SWTModuleController.java:209) at org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.selectActiveNode(SWTModuleController.java:131) at org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.access$0(SWTModuleController.java:130) at org.eclipse.riena.navigation.ui.swt.views.SWTModuleController$SubModuleListener$1.run(SWTModuleController.java:249) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) ... 24 more (In reply to comment #3) > I get a NPE in the TreeRidget > > .... > > Caused by: java.lang.NullPointerException > at > org.eclipse.riena.internal.ui.ridgets.swt.TreeRidget.getRowObservables(TreeRidget.java:218) > at > org.eclipse.riena.ui.ridgets.swt.AbstractSelectableRidget.assertIsBoundToModel(AbstractSelectableRidget.java:233) > at > org.eclipse.riena.ui.ridgets.swt.AbstractSelectableRidget.setSelection(AbstractSelectableRidget.java:189) > at > org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.setSelectedNode(SWTModuleController.java:205) > at > org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.setSelectedNode(SWTModuleController.java:209) > at > org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.selectActiveNode(SWTModuleController.java:131) > at > org.eclipse.riena.navigation.ui.swt.views.SWTModuleController.access$0(SWTModuleController.java:130) > at > org.eclipse.riena.navigation.ui.swt.views.SWTModuleController$SubModuleListener$1.run(SWTModuleController.java:249) > at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) > at > org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) > ... 24 more seems just to have your NPE as root. getSubApplicationNode().getNodeId() = null ! Any ideas what those id's are and where they should be defined ? I don't understand the Navigation-Model at that detail level... The example used to work, so I think it is caused by changes / new requerements regarding the id's. Maybe the place where we construct the navigation for the example ( Application#createModel ) has to be updated ? I think you could fix it just by calling the SubApplicationNode-Constructor public SubApplicationNode(final NavigationNodeId nodeId, final String label) in org.eclipse.riena.sample.app.client.mail.Application inside createModel(). But I think this is just a workaround as it is absolutly valid to call the constructor without the NavigationNodeId. I'll have a look. Fixed NavigationViewPart and StackPresentation |