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 231544 - java.lang.NullPointerException at org.netbeans.modules.css.visual.CssStylesTCController$ShutdownHook.beforeSave(CssStylesTCController.java:211)
Summary: java.lang.NullPointerException at org.netbeans.modules.css.visual.CssStylesTC...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 231607 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-19 19:34 UTC by everflux
Modified: 2013-07-01 12:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2013-06-19 19:34:53 UTC
Product Version: NetBeans IDE Dev (Build 201306181109)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01

During installation Netbeans showed a short error dialog, which I could barely read. Looking at the .nbi/ logs I found this:b

2013-06-19 21:27:16.368]:     [stderr]: org.netbeans.modules.junitlib [1.1 nbms-and-javadoc-11156-on-20130619]
[2013-06-19 21:27:18.577]:     [stdout]: Downloading JavaScript2 Editor
[2013-06-19 21:27:20.986]:     [stderr]: WARNING [org.netbeans.core.modules]
[2013-06-19 21:27:20.986]:     [stderr]: java.lang.NullPointerException
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.modules.css.visual.CssStylesTCController$ShutdownHook.beforeSave(CssStylesTCController.java:211)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.windows.WindowManagerImpl.fireEvent(WindowManagerImpl.java:2037)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.windows.WindowSystemImpl.save(WindowSystemImpl.java:91)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.NbLifeExit.doStopInfra(NbLifeExit.java:147)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:97)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.startup.ModuleSystem$2.run(ModuleSystem.java:343)
[2013-06-19 21:27:20.986]:     [stderr]: [catch] at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:1973)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:349)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:134)
[2013-06-19 21:27:20.986]:     [stderr]: at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:94)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventQueue.access$200(EventQueue.java:103)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventQueue$3.run(EventQueue.java:694)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventQueue$3.run(EventQueue.java:692)
[2013-06-19 21:27:20.986]:     [stderr]: at java.security.AccessController.doPrivileged(Native Method)
[2013-06-19 21:27:20.986]:     [stderr]: at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
[2013-06-19 21:27:20.986]:     [stderr]: at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
[2013-06-19 21:27:20.986]:     [stderr]: INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 256
[2013-06-19 21:27:20.986]:     [stderr]: INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped
[2013-06-19 21:27:20.987]:     [stderr]: INFO [org.netbeans.core.netigso.Netigso]: bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped
[2013-06-19 21:27:21.689]:     [stderr]: Diagnostic information
Comment 1 Jiri Rechtacek 2013-06-20 07:08:33 UTC
It's reproducible also if you run IDE from command line with options: ./bin/netbeans -J-Dnetbeans.close=true --nosplash -J-Dorg.netbeans.core.WindowSystem.show=false --userdir /tmp/newud, then NPE java.lang.NullPointerException at
org.netbeans.modules.css.visual.CssStylesTCController$ShutdownHook.beforeSave(CssStylesTCController.java:211)
Comment 2 Jiri Rechtacek 2013-06-21 08:02:03 UTC
*** Bug 231607 has been marked as a duplicate of this bug. ***
Comment 3 Marek Fukala 2013-06-24 13:18:49 UTC
fixed in web-main#598ef9387bc2

The author of the erroneous code is petrk@netbeans.org but I have no idea who he is :-)
Comment 4 Quality Engineering 2013-06-26 02:29:48 UTC
Integrated into 'main-golden', will be available in build *201306252301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/598ef9387bc2
User: Marek Fukala <mfukala@netbeans.org>
Log: #231544 - java.lang.NullPointerException at org.netbeans.modules.css.visual.CssStylesTCController$ShutdownHook.beforeSave(CssStylesTCController.java:211)
Comment 5 petrk 2013-07-01 08:33:24 UTC
> fixed in web-main#598ef9387bc2
> 
> The author of the erroneous code is petrk@netbeans.org but I have no idea who
> he is :-)

Probably my nick is there because of a merge - I have never touched code not related to CND. Sorry anyway :)
Comment 6 Marek Fukala 2013-07-01 12:41:59 UTC
(In reply to comment #5)
> > fixed in web-main#598ef9387bc2
> > 
> > The author of the erroneous code is petrk@netbeans.org but I have no idea who
> > he is :-)
> 
> Probably my nick is there because of a merge - I have never touched code not
> related to CND. Sorry anyway :)
I'm sorry Petr ... too rushy evaluation :-)