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.
[#200806180005, jdk1.5.0] to reproduce: ------------- 1) have a .jsp like: <% java.util.Map<String,String> map = new java.util.HashMap<String,String>();| map.put("1", "one"); map.put("2", "two"); %> <% for(String cn : map.keySet()) { %> <p style="<%= (map.get(cn)!=null && !map.get(cn).equals("two") ? "color: red" : "") %>"> <%= map.get(cn) %></p> <% } %> NOTE: | char represents cursor 2) move the cursor left (by [<-] key) IDE throws:
Created attachment 63001 [details] NullPointerException
Created attachment 63002 [details] A similar NPE from closing the .jsp
I have identified the problem and I'm working on a fix. In the meantime I have disabled custom embedding creation so that the problematic jsp can be opened. http://hg.netbeans.org/main/rev/2f5fdf113b00
Integrated into 'main-golden', available in NB_Trunk_Production #271 build Changeset: http://hg.netbeans.org/main/rev/2f5fdf113b00 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #137579 - NPE at .lexer.EmbeddedTokenList.joinTokenCount(EmbeddedTokenList.java:239).
I have removed the original workaround and fixed the problem. http://hg.netbeans.org/main/rev/349aa983e762
Integrated into 'main-golden', available in NB_Trunk_Production #277 build Changeset: http://hg.netbeans.org/main/rev/349aa983e762 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #137579 - NPE at .lexer.EmbeddedTokenList.joinTokenCount(EmbeddedTokenList.java:239) - final fix.
*** Issue 137701 has been marked as a duplicate of this issue. ***