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 234524 - Exception while closing the Options Dialog that came by clicing the code hint [Configure "Thread.sleep in loop"]
Summary: Exception while closing the Options Dialog that came by clicing the code hin...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-17 06:44 UTC by adithyank
Modified: 2013-08-23 02:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (152.68 KB, text/plain)
2013-08-17 06:44 UTC, adithyank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adithyank 2013-08-17 06:44:23 UTC
Created attachment 138814 [details]
IDE Log

Product Version = NetBeans IDE Dev (Build 201308092300)
Operating System = Linux version 2.6.32-358.14.1.el6.i686 running on i386
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) Client VM 23.25-b01


49                 for (int y = fy; y >= 100; y--)
50                 {
51                         frame.setLocation(fx, y);
52                         System.out.println("loc = " + frame.getLocation());
53                         if (first)
54                         {
55                                 frame.setVisible(true);
56                                 first = false;
57                         }
58                         try
59                         {
60                                 Thread.sleep(1);
61                         }
62                         catch (InterruptedException ex)
63                         {
64                         }
65                 }

In the above code, in the line number 60, when I click the hint [Configure "Thread.sleep in loop"], the Options Dialog appears. When I just closed it without doing any modification, the below Exception came.

java.lang.NullPointerException
	at org.netbeans.modules.maven.hints.pom.HintsPanel.getTreeCellRendererComponent(HintsPanel.java:310)
	at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2786)
	at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:492)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1359)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1486)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1287)
	at javax.swing.tree.VariableHeightLayoutCache.rebuild(VariableHeightLayoutCache.java:742)
	at javax.swing.tree.VariableHeightLayoutCache.setModel(VariableHeightLayoutCache.java:108)
	at javax.swing.plaf.basic.BasicTreeUI.setModel(BasicTreeUI.java:411)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(BasicTreeUI.java:3394)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at java.awt.Component.firePropertyChange(Component.java:8382)
	at javax.swing.JTree.setModel(JTree.java:879)
	at org.netbeans.modules.maven.hints.pom.HintsPanel$1$1.run(HintsPanel.java:107)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


When I did the same sequence of activities again and again, this Exception did not come. It came only in the first time
Comment 1 Tomas Danek 2013-08-19 14:24:46 UTC
-> maven hints
Comment 2 Milos Kleint 2013-08-20 11:07:58 UTC
http://hg.netbeans.org/core-main/rev/299fcb972940
Comment 3 Quality Engineering 2013-08-22 04:26:27 UTC
Integrated into 'main-silver', will be available in build *201308212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/299fcb972940
User: Milos Kleint <mkleint@netbeans.org>
Log: #234524 check for null
Comment 4 Quality Engineering 2013-08-23 02:36:16 UTC
Integrated into 'main-silver', will be available in build *201308222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53065012ff8a
User: Milos Kleint <mkleint@netbeans.org>
Log: #234524 consult cache of icons before going to fs level operations.