Community
Participate
Working Groups
Created attachment 258655 [details] Sample Xtext project with an extra Console that is brought to front on each build The runInUIThread method of the ShowConsoleViewJob access the console member of that class which could be changed by subsequent executions. The issue would result in a null pointer exception that is reproducible in Xtext projects by having a console brought to front at each build while the console view is closed. On the Xtext side this is caused by a call to the manager.showConsoleView on a null console which in turn calls this job. Calling the console manager with a null console should have simply schedule a job that eventually does nothing, since the job already checks for a null console, however it seems that this is not the case. I have attached a sample xtext project where this issue would occur when the console is closed. To run it : - Import the project in a workspace where xtext is installed - Run an eclipse application (Make sure the targetplatform will include xtext) - Create a project - Create a file in the project with the extension .statemachine ( - Close the console - Clean the project ) - Repeat twice -> Null pointer
New Gerrit change created: https://git.eclipse.org/r/62639
Thanks for reporting the bug and providing the patch !!
Since i'm not an eclipse commiter, there should still be someone to review and submit my patch, but I noticed the bug is still assigned to me, is there something I can still do?
Thanks Ghaith, I am working on it to release the changes.
Gerrit change https://git.eclipse.org/r/62639 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=5fc4fba5a5734ec73a706a9dc21d773756656f3a
Changes has been released.
Verified using Eclipse SDK Version: Neon (4.6) Build id: I20160124-2000