Community
Participate
Working Groups
Created attachment 274508 [details] Eclipse project to reproduce Eclipse IDE for Eclipse Committers Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 Steps to reproduce: - Import attached project - Open BugReproTest class - Hover Lunch toolbar action -> An error dialog will be displayed. Also, when hovering the "Run as" or "Debug as" context menu entries of the above mentioned class logs a NPE. See attached log for details.
Created attachment 274509 [details] Eclipse log file
Reproduced with master. As per the log and the reported version 4.7.3a, the line on top of the stack is this: public Constant optimizedBooleanConstant() { switch (this.resolvedType.id) { // where the NPE occurs And the code in question is this: pp.rs = ! (boolean) pp.rs; And the presence of "!' seem to cause the resolvedType to be null somehow.
This looks just like bug 489979, perhaps even based on the same code? :)
(In reply to Stephan Herrmann from comment #3) > This looks just like bug 489979, perhaps even based on the same code? :) Indeed. I had spent some time (luckily not so much) to arrive at the same conclusion that Sasi did (bug 489979, comment #4). And your suggestion looks like a better option in terms of performance. Will see what it takes.
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. If you have further information on the current state of the bug, please add it. 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.