Bug 199585 - NPE in SystemTableViewPart during RSE testsuite testConnectionRemoval
Summary: NPE in SystemTableViewPart during RSE testsuite testConnectionRemoval
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 2.0.1   Edit
Assignee: Martin Oberhuber CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-10 10:53 EDT by Martin Oberhuber CLA
Modified: 2007-08-10 10:57 EDT (History)
2 users (show)

See Also:


Attachments
Patch fixing the issue (1.97 KB, patch)
2007-08-10 10:56 EDT, Martin Oberhuber CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-08-10 10:53:08 EDT
testConnectionRemoval fails on RSE HEAD:

java.lang.NullPointerException
	at org.eclipse.rse.internal.ui.view.SystemTableViewPart.systemResourceChanged(SystemTableViewPart.java:1557)
	at org.eclipse.rse.ui.internal.model.SystemResourceChangeManager.notify(SystemResourceChangeManager.java:74)
	at org.eclipse.rse.ui.internal.model.SystemRegistry.fireEvent(SystemRegistry.java:2552)
	at org.eclipse.rse.tests.internal.RSEConnectionManager.removeConnection(RSEConnectionManager.java:181)
	at org.eclipse.rse.tests.core.connection.RSEConnectionTestCase.testConnectionRemoval(RSEConnectionTestCase.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Comment 1 Martin Oberhuber CLA 2007-08-10 10:56:24 EDT
Created attachment 75855 [details]
Patch fixing the issue

Attached patch fixes the problem. When listening for events, SystemTableViewPart would treat EVENT_DELETE the same as EVENT_DELETE_MANY, but they have different kinds of source parameter.
Comment 2 Martin Oberhuber CLA 2007-08-10 10:57:23 EDT
Patch committed:
[199585] Fix NPE during testConnectionRemoval unit test
   SystemTableViewPart.java  1.22