| Summary: | NPE in VariablesView.partDeactivated caused by hiding a view in a partActivated listener | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Francis Upton IV <francisu> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, psuzzi, remy.suen |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Francis Upton IV
I don't think this is Debug's problem; I can now make it happen at will and you are the victim of a part ref with a null part. This seems to be a dup of bug 355456 *** This bug has been marked as a duplicate of bug 355456 *** For the record, I found out what's causing this problem. In one of my partActivated listeners I'm hiding a view, which causes trouble further down the invocation chain. When I moved the hiding of the view to an asyncExec, the problem went away. Platform UI might want to have a look at this; I'm not sure what the rules are for hiding a view withing a partActivation event. (In reply to comment #2) > For the record, I found out what's causing this problem. In one of my > partActivated listeners I'm hiding a view, which causes trouble further down > the invocation chain. When I moved the hiding of the view to an asyncExec, the > problem went away. > > Platform UI might want to have a look at this; I'm not sure what the rules are > for hiding a view withing a partActivation event. Can you provide a test plug-in / example? |