Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 374103 - [LML] NPE in LMLNodeData#getLowerIdsAndSchemesForIds()
Summary: [LML] NPE in LMLNodeData#getLowerIdsAndSchemesForIds()
Status: CLOSED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 6.0   Edit
Assignee: Carsten Karbach CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 12:37 EDT by Jeffrey Overbey CLA
Modified: 2013-02-28 03:29 EST (History)
1 user (show)

See Also:


Attachments
This patch should solve the problem for now. It checks the min-attribute in the scheme-tag to be not null. (729 bytes, patch)
2012-03-14 04:44 EDT, Carsten Karbach CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Overbey CLA 2012-03-13 12:37:48 EDT
Hi,

I'm occasionally getting the following NPE when monitoring our Cray system (Torque/ALPS):

java.lang.NullPointerException
	at org.eclipse.ptp.rm.lml.internal.core.model.LMLNodeData.getLowerIdsAndSchemesForIds(LMLNodeData.java:64)
	at org.eclipse.ptp.rm.lml.internal.core.model.LMLNodeData.getLowerNodes(LMLNodeData.java:307)
	at org.eclipse.ptp.rm.lml.internal.core.model.TreeExpansion.expandLMLNode(TreeExpansion.java:46)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayComp.<init>(NodedisplayComp.java:357)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayCompMinSize.<init>(NodedisplayCompMinSize.java:71)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayCompMinSize.<init>(NodedisplayCompMinSize.java:95)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayView.createRootNodedisplay(NodedisplayView.java:687)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayView.goToImpName(NodedisplayView.java:340)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayView.update(NodedisplayView.java:428)
	at org.eclipse.ptp.rm.lml.ui.providers.NodedisplayView.update(NodedisplayView.java:402)
	at org.eclipse.ptp.rm.lml.ui.views.NodesView$LguiListener$3.run(NodesView.java:113)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
	at org.eclipse.ptp.rm.lml.ui.UIUtils$7.run(UIUtils.java:194)
	at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
	at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3945)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3622)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:352)
	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:624)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1433)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1409)
Comment 1 Carsten Karbach CLA 2012-03-14 04:44:19 EDT
Created attachment 212624 [details]
This patch should solve the problem for now. It checks the min-attribute in the scheme-tag to be not null.