Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366663 - [flex] NPE in TreeModelContentProvider.dispose() if setInput() was never called on the viewer.
Summary: [flex] NPE in TreeModelContentProvider.dispose() if setInput() was never call...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.8 M5   Edit
Assignee: Pawel Piech CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 00:41 EST by Pawel Piech CLA
Modified: 2011-12-14 12:33 EST (History)
1 user (show)

See Also:
Michael_Rennie: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2011-12-14 00:41:33 EST
It's an unusual use case, but I came across this when writing a unit test framework.  

A simple guard in dipose() will prevent the NPE.
Comment 2 Michael Rennie CLA 2011-12-14 12:33:13 EST
Makes sense.