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: | Exception while closing the Options Dialog that came by clicing the code hint [Configure "Thread.sleep in loop"] | ||
---|---|---|---|
Product: | projects | Reporter: | adithyank |
Component: | Maven | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE Log |
-> maven hints 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 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. |
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