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 227879 - NullPointerException at org.netbeans.modules.web.inspect.ui.DomTCController.updateDomTC0
Summary: NullPointerException at org.netbeans.modules.web.inspect.ui.DomTCController.u...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-25 07:27 UTC by Vladimir Riha
Modified: 2013-03-25 14:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199851


Attachments
stacktrace (1.37 KB, text/plain)
2013-03-25 07:27 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-03-25 07:27:56 UTC
Build: NetBeans IDE Dev (Build web-main-10157-on-20130325)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
vriha: What caused it:
- start IDE with fresh userdir
- create a new HTML5 project
- open index.html
- run index.html




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.inspect.ui.DomTCController.updateDomTC0(DomTCController.java:216)
   at org.netbeans.modules.web.inspect.ui.DomTCController.access$100(DomTCController.java:64)
   at org.netbeans.modules.web.inspect.ui.DomTCController$2.run(DomTCController.java:189)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
Comment 1 Vladimir Riha 2013-03-25 07:27:58 UTC
Created attachment 133017 [details]
stacktrace
Comment 2 Vladimir Riha 2013-03-25 07:29:17 UTC
P2 at least. It happens every time editor with running file gets focus:

- run index.html
- click somewhere in Projects window
- click in editor

=> NPE
Comment 3 Vladimir Riha 2013-03-25 07:33:52 UTC
The file doesn't have to be running at all. I'm sorry, this is P1, it makes work with HTML files very difficult, almost every click outside of editor and then focusing editor back again causes this.
Comment 4 Jan Stola 2013-03-25 07:56:32 UTC
The exception shows that DomTree TopComponentGroup was not found. The root of this problem is an unfortunate typo. The declared group name is DomTC (instead of DomTree). I missed this problem because I always reused a user-dir that had the right group declared (from some previous experiments). I am sorry for that.
Comment 5 Jan Stola 2013-03-25 08:15:06 UTC
Fixed by http://hg.netbeans.org/web-main/rev/de2a8c96470a
Comment 6 Vladimir Riha 2013-03-25 14:22:39 UTC
Thanks a lot for quick fix

Product Version: NetBeans IDE Dev (Build web-main-10163-on-20130325)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.2.0-39-generic-pae running on i386; UTF-8; en_US (nb)