This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am getting a NPE when AbstractToken.toString() is called. See the attached stacktrace. To reproduce: 1) build html/editor from 'embedding_60' branch 2) build languages/engine, scripting/javascript, languages/css and web/css 3) run NB 4) open attached file 5) type sg. into javascript embedded section for example line 15 => after a while Schliemann parser runs and the NPE appears.
Created attachment 39873 [details] The NPE
Created attachment 39874 [details] The HTML file to reproduce
The NPE appear after each change in the document -> quite annoing -> P1. I am not sure, but maybe the same problem can happen somewhere else in a part of the IDE which is a part of the build so would be good to fix in M8. Adding Martin Schovanek and Jindra Sedek to CC so they are aware of the potential M8 problem. Anyway, thanks Milo for fixing the embedding problem, now it works perfectly, just the NPE ... :-)
I was able to reproduce. I'm currently checking whether the parser isn't using an obsolete token that was already removed from the token hierarchy but anyway it should not fail with NPE.
I forgot to increase the priority. The bug is extremely annoying since it shows up after each change in the document - when Schliemann parser runs. Please fix it ASAP.
I'm working on the fix; I'm adding an extra logging that will help to find identity of the removed tokens and check whether they are being still used or not. The logging should also help with resolving of the issue 93644.
*** Issue 100079 has been marked as a duplicate of this issue. ***
This problem was caused by not updating reference to the root token at the more nested embedding levels (string literal in javascript in html) that later caused the NPE. As part of the fix of issue 93644 this problem should also be eliminated.
*** Issue 98952 has been marked as a duplicate of this issue. ***