Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363666 - [LML] NPE in LguiItem#isLayout
Summary: [LML] NPE in LguiItem#isLayout
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 5.0.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Claudia Knobloch CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 21:03 EST by Jeffrey Overbey CLA
Modified: 2012-09-21 11:18 EDT (History)
2 users (show)

See Also:


Attachments
Further NPE check (15.41 KB, patch)
2011-11-14 08:47 EST, Claudia Knobloch 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 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!