| Summary: | [Commands] NullPointerException after Editing several XML files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Stefan Drzazga <stefan.drzazga> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | remy.suen, ReubenGarrett, thatnitind | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Stefan Drzazga
Created attachment 202975 [details]
Stacktrace
It is possible for getDefaultVariable() to return null as spec'd in the API so it seems like we should guard against this in AdaptExpression. Paul, getDefaultVariable() is spec'd to return null. However, do we expect this to happen while evaluating expressions? (In reply to comment #3) > Paul, getDefaultVariable() is spec'd to return null. However, do we expect this > to happen while evaluating expressions? Not for any variables provided by the workbench. We set IEvaluationContext.UNDEFINED_VARIABLE any time we don't have a value. But that's because we used to get CoreExceptions when evaluating a variable that didn't exist (returned null). Shouldn't the <iterate/> element have died if the default variable was null? PW *** Bug 369575 has been marked as a duplicate of this bug. *** If anyone knows how to reliably reproduce this problem, please let us know. Note that this is also broken in 4.x per bug 369575. I guess this problem would happen if someone had an IStructuredSelection that contained a null element? This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |