| Summary: | [Compatibility] NPE in LegacyHandlerService's deactivateHandler(IHandlerActivation) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Paul Webster <pwebster> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | emoffatt, john.arthorne, remy.suen | ||||
| Version: | 1.0 | ||||||
| Target Milestone: | 4.1 M4 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Olivier Thomann
I am seeing this in the log as well. From a quick look, it may be the ProcessConsolePageParticipant that is passing in null here. I am seeing it on 4.1 M2. *** Bug 328880 has been marked as a duplicate of this bug. *** Olivier came to talk to me about this problem today and I think I've gotten some decently reliable steps down. 1. Show the 'Console' view if you don't have it up already. 2. Have two Java applications prepared. 3. Have a breakpoint in one of them. 4. Debug it. 5. Now just run the second one. 6. The exception should occur. Note that while you're trying to reproduce the problem, you must not activate the 'Console' view by mistake. Created attachment 184644 [details]
LegacyHandlerService patch v1
I think we need to add protection, but also find out what calls are wrong and get them fixed. If null is not allowed, then this should be fixed as well. (In reply to comment #5) > Created an attachment (id=184644) [details] > LegacyHandlerService patch v1 Patch released to CVS HEAD. (In reply to comment #6) > I think we need to add protection, but also find out what calls are wrong and > get them fixed. If null is not allowed, then this should be fixed as well. Agreed. We have opened bug 331932 against Debug for this problem. Perhaps we may roll back this patch later but that can be considered after M4 has shipped. Thanks for the help, Olivier. Verified with I20101207-0250 on Windows XP. Unfortunately, I managed to miss this and another NPE happens afterwards actually. I will be adding a null check for bug 332063 and have notified the Debug team of this API violation in bug 331932 comment 5. |