Community
Participate
Working Groups
Created attachment 272066 [details] Image of the error pop-up When saving a specific text, the eclipse UI will prompt a Nullpointer exception. The file is saved, but when the file is closed and opened again, the file cannot be opened. The text is: <quote> Test = { /**/ test: function(mode) { var i; if (true) i = 0; else { i = 1; i = 2; } } Ios = { </quote> The thing is, when i add a ';' or remove the '/**/' or remove a '{' the file does save as normal. Add ';' (line 11) <quote> Test = { /**/ test: function(mode) { var i; if (true) i = 0; else { i = 1; i = 2; } }; Ios = { </quote> Remove '/**/' (line 2) <quote> Test = { test: function(mode) { var i; if (true) i = 0; else { i = 1; i = 2; } } Ios = { </quote> remove '{' (line 7) <quote> Test = { /**/ test: function(mode) { var i; if (true) i = 0; else i = 1; i = 2; } } Ios = { </quote> I have no clue why this happens.
Please attach the error *stack trace*, not just the screenshot.
This seems a JavaScript problem. I recall a similar issue in JSDT with very specific text. Moving to JSDT. Please, move back if not correct. Also, a stack trace would really help.
New Gerrit change created: https://git.eclipse.org/r/120746
Gerrit change https://git.eclipse.org/r/120746 was merged to [master]. Commit: http://git.eclipse.org/c/jsdt/webtools.jsdt.git/commit/?id=534695ebf60ce7671a3c96f2fc12caa5b975137b
*** Bug 527126 has been marked as a duplicate of this bug. ***
*** Bug 521076 has been marked as a duplicate of this bug. ***
*** Bug 532685 has been marked as a duplicate of this bug. ***
*** Bug 519953 has been marked as a duplicate of this bug. ***
*** Bug 531017 has been marked as a duplicate of this bug. ***
*** Bug 521425 has been marked as a duplicate of this bug. ***
*** Bug 519414 has been marked as a duplicate of this bug. ***