Community
Participate
Working Groups
Build Identifier: I20110906-2000 I've made some modification to a bunch of XML files. All of sudden an error message with a NPE was shown. After this, I was not able to save or make any modification to any file. After restarting Eclipse it worked fine. Reproducible: Sometimes Steps to Reproduce: 1. Open, modify, save and close a few XML files
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.