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.

Bug 214628 - NullPointerException at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively
Summary: NullPointerException at org.netbeans.modules.csl.navigation.ElementNode.updat...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 12:59 UTC by troodon
Modified: 2012-09-12 11:59 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 189925


Attachments
stacktrace (2.09 KB, text/plain)
2012-06-22 12:59 UTC, troodon
Details
stacktrace (2.37 KB, text/plain)
2012-06-26 14:20 UTC, mcneill.cc
Details
stacktrace (2.00 KB, text/plain)
2012-06-27 06:53 UTC, dominikof
Details
stacktrace (1.20 KB, text/plain)
2012-07-19 10:35 UTC, Vladimir Riha
Details
Proposed patch (1.03 KB, patch)
2012-09-07 14:38 UTC, Svata Dedic
Details | Diff
stacktrace (850 bytes, text/plain)
2012-09-12 11:59 UTC, jyeary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description troodon 2012-06-22 12:59:38 UTC
This bug was originally marked as duplicate of bug 213506, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201206220002)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
williambacchi: editing html




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:316)
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:322)
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:322)
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:322)
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:322)
   at org.netbeans.modules.csl.navigation.ElementNode.updateRecursively(ElementNode.java:279)
Comment 1 troodon 2012-06-22 12:59:44 UTC
Created attachment 121220 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-06-26 14:17:08 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=189925
Comment 3 mcneill.cc 2012-06-26 14:20:07 UTC
Created attachment 121383 [details]
stacktrace

Selected HTML fragment, and dragged to new location within document (jsp).
Comment 4 dominikof 2012-06-27 06:53:05 UTC
Created attachment 121424 [details]
stacktrace
Comment 5 Exceptions Reporter 2012-07-02 03:35:19 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=189925
Comment 6 Vladimir Riha 2012-07-19 10:35:10 UTC
Created attachment 122189 [details]
stacktrace

no idea what caused it, I tried with Palette and undoing inserted objects from Palette
Comment 7 Exceptions Reporter 2012-08-22 08:38:26 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=189925
Comment 8 Svata Dedic 2012-09-07 14:37:58 UTC
getNestedItems() is annotated as @NonNull. I tried to inspect all implementations in the standard distribution, found 1 place where the impl MAY return null - sometimes. It's in HTML, and occurs when the parent item is not found in the newly parsed text for some reason. This may occur when e.g. outer elements are passed, or some unclosed element appears prior to the expanded item.

Passing proposed diff for evaluation to HTML maintainer.
Comment 9 Svata Dedic 2012-09-07 14:38:19 UTC
Created attachment 124037 [details]
Proposed patch
Comment 10 Svata Dedic 2012-09-10 07:55:37 UTC
Will be fixed in http://hg.netbeans.org/jet-main/rev/051539f138c8
Comment 11 Quality Engineering 2012-09-12 02:11:16 UTC
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/051539f138c8
User: Svata Dedic <sdedic@netbeans.org>
Log: #214628: fixed unexpected null return value
Comment 12 jyeary 2012-09-12 11:59:12 UTC
Created attachment 124235 [details]
stacktrace