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

Bug 315988

Summary: NPE on console after opening SystemTap perspective/views
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: SystemtapAssignee: anithra <anithra>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: charley.wang, pmuldoon, rgrunber
Version: unspecified   
Target Milestone: 0.6   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Hides the message none

Description Andrew Overholt CLA 2010-06-07 09:39:42 EDT
After verifying some other SystemTap bugs, I noticed this in my terminal.  At a minimum I'd like to see this go to the consolelog instead of the console.

Exception in thread "TapsetParser" java.lang.NullPointerException
	at org.eclipse.linuxtools.systemtap.ui.ide.views.BrowserView$ViewUpdater.handleUpdateEvent(BrowserView.java:160)
	at org.eclipse.linuxtools.systemtap.ui.ide.structures.TapsetParser.fireUpdateEvent(TapsetParser.java:156)
	at org.eclipse.linuxtools.systemtap.ui.ide.structures.TapsetParser.run(TapsetParser.java:125)
	at java.lang.Thread.run(Thread.java:636)
Comment 1 Andrew Overholt CLA 2010-06-08 10:50:10 EDT
Roland/Charley, if you have a second, can you help Anithra out by seeing if you can reproduce this?  If you can't reproduce it, close it, as I may have been experiencing issues with my installation at the time.  Thanks.
Comment 2 anithra CLA 2010-06-08 10:57:57 EDT
Created attachment 171415 [details]
Hides the message

I think this exception might occur when systemtap is not installed on the machine, this will need to be reopened and investigated later.
Comment 3 anithra CLA 2010-06-08 10:58:21 EDT
The patch has been committed
Comment 4 Charley Wang CLA 2010-06-08 11:10:40 EDT
This doesn't reproduce for me either. I believe the error is caused by viewer being null -- I can get the update event to fire but the viewer variable is never null for me. Tried removing some tapsets from the tapsets folder as well.
Comment 5 Andrew Overholt CLA 2010-06-08 13:43:34 EDT
I've opened all the SystemTap views and perspectives that there are and I can't reproduce this with the latest build (#234, 201006081201).  Thanks.