Bug 197971

Summary: [Table][Regression] NPE when table has no input and doing commands in Systems View
Product: [Tools] Target Management Reporter: Kevin Doyle <kjdoyle>
Component: RSEAssignee: Kevin Doyle <kjdoyle>
Status: CLOSED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: dmcknigh
Version: 2.0Keywords: contributed
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Added a check if _currentItem is null mober.at+eclipse: iplog+

Description Kevin Doyle CLA 2007-07-26 10:37:08 EDT
When we load up RSE the Remote System Details View is open, but has no input.  Since it is open it is listening to refresh events.

This line in SystemTableViewPart.removeFromHistory() is causing the error because _currentItem is null.

Object currentObject = _currentItem.getObject();

This regression is a result of bug #193394.

-----------Enter bugs above this line-----------
TM 2.0.1 Testing
installation : eclipse-SDK-3.3
RSE install  : Dev Driver
java.runtime : Sun 1.5.0_11-b03
os.name:     : Windows XP, Service Pack 2
------------------------------------------------
Comment 1 Kevin Doyle CLA 2007-07-26 10:48:20 EDT
Created attachment 74696 [details]
Added a check if _currentItem is null

Legal Message: I, Kevin Doyle, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this
contribution under the EPL.
Comment 2 David McKnight CLA 2007-07-26 10:59:37 EDT
I've applied the patch for this to cvs.
Comment 3 Martin Oberhuber CLA 2007-07-27 04:37:04 EDT
When applying a patch pls dont forget setting the Target Milestone and the "contributed" kwd.
Comment 4 Kevin Doyle CLA 2007-09-13 13:12:47 EDT
Verified fixed with 2.0.1 RC1.