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.
Summary: | NullPointerException at org.netbeans.modules.web.core.syntax.completion.ElCompletionProvider.isAfterElDelimiter | ||
---|---|---|---|
Product: | javaee | Reporter: | Peter Pis <ppis> |
Component: | JSP | Assignee: | Tomasz Slota <tslota> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mfukala, mmetelka, pjiricka, vstejskal |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 169429 |
Attachments: | stacktrace |
Description
Peter Pis
2010-05-24 08:55:42 UTC
Created attachment 99376 [details]
stacktrace
P1. I can't reproduce. Can anyone who can reproduce please attach reproducible steps, or the file on which this is happening? The problem happened due to token.text() returning unexpected 'null', so it can be very rare/difficult to reproduce. Adding a simple NPE check may or may not be the right solution, I am investigating it.. After clearing the user directory, I am not able to reproduce it. I am unable to reproduce as well but it should be nice to add at least NPE check ? Keeping it as P1 It was actually not token.getText() returning null, but tokenHierarchy.tokenSequence() returning null. This situation was made possibe after some recent performance optimizations implemented by Mila (token hierarchy is switched off during formatting and undo actions), but anyways tokenHierarchy.tokenSequence() should be always checked for null, therefore adding a simple NPE is a legitimate solution. It's been already done in trunk: http://hg.netbeans.org/web-main/rev/1fe417dc3a0d Vito, please review the fix The fix is OK. The fix was integrated to the release69 branch: http://hg.netbeans.org/release69/rev/82a28abb0221 Integrated into 'main-golden', will be available in build *201005250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1fe417dc3a0d User: Tomasz Slota <tslota@netbeans.org> Log: #186587: NullPointerException at org.netbeans.modules.web.core.syntax.completion.ElCompletionProvider.isAfterElDelimiter Verified in the RC1 build by QE. v. |