Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363666

Summary: [LML] NPE in LguiItem#isLayout
Product: [Tools] PTP Reporter: Jeffrey Overbey <com-eclipse-dot-org>
Component: RMAssignee: Claudia Knobloch <cla.knobloch>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cla.knobloch, g.watson
Version: 5.0.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Further NPE check g.watson: iplog-

Description Jeffrey Overbey CLA 2011-11-13 21:03:42 EST
One of the SC11 tutorial participants got this NPE today:

java.lang.NullPointerException
       at org.eclipse.ptp.rm.lml.internal.core.model.LguiItem.isLayout(LguiItem.java:310)
       at org.eclipse.ptp.rm.lml.ui.views.TableView.createColumns(TableView.java:434)
       at org.eclipse.ptp.rm.lml.ui.views.TableView.createTable(TableView.java:645)
       at org.eclipse.ptp.rm.lml.ui.views.TableView.access$5(TableView.java:643)
       at org.eclipse.ptp.rm.lml.ui.views.TableView$LMLTableListListener$1.run(TableView.java:89)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

It looks like an easy fix: line 310 in LguiItem.java is this:
		return (lgui == null) && lgui.isLayout();
Comment 1 Claudia Knobloch CLA 2011-11-14 08:47:17 EST
Created attachment 206942 [details]
Further NPE check

I will check in the patch into the ptp repository ASAP.
Comment 2 Claudia Knobloch CLA 2012-02-10 09:16:19 EST
Solved by another code patch.
Comment 3 Jeffrey Overbey CLA 2012-02-10 09:33:33 EST
Great!  Thanks, Claudia!