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.
1) opened attached jsp file => the file was not colored at all, first NPE appeared 2) typed < at the end of line 24 => the second attached NPE appeared. I cannot reproduce it anymore.
Created attachment 51984 [details] The JSP file
Created attachment 51985 [details] The NPEs
Looks like the token with embedding is detached from token hierarchy. I'll fix ASAP.
I was only able to reproduce once when I restarted the IDE and typed '<' quickly into just opened jsp source (the one attached). But now the same scenario does not produce any error anymore even when I attempted >10 times :( It's clear that the issue is random so I suspect that there might be a RP thread accessing the token hierarchy without appropriate locks but I need to verify that - the issue 120052 might help with it. In the meantime I've added some better diagnostics. /cvs/lexer/src/org/netbeans/lib/lexer/EmbeddedTokenList.java,v <-- EmbeddedTokenList.java new revision: 1.20; previous revision: 1.19
Well, I've attempted to also reproduce >5 times after fix of issue 120906 (its fix could eliminate this one too but I'm not sure) but I still can't reproduce even with a fresh userdir. Marku could you please reproduce? Otherwise I would believe that the 120906 had eliminated this one. Thanks.
I have re-checked the things again - I have undone locally the last part of fix of #120906 (the one after I was able to consistently reproduce the NPE that I've attached to #120906 e.g. in lexer's JoinSectionsTest etc.) and I was then able to consistently reproduce this problem too. So the fix of issue 120906 should eliminate this one too.
*** Issue 118797 has been marked as a duplicate of this issue. ***
*** Issue 119197 has been marked as a duplicate of this issue. ***