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.
When running in SDI mode with the Favorites, Files, Navigator & Projects windows open either individually or grouped in a single window, the following exception is thrown when the mouse rolls over or selects the window tab. This occurs in the latest daily build in 4.1, but is a recent regression as it doesn't occur in the 4.1 Beta release. System details: Product Version = NetBeans IDE Dev (Build 200504142205) Operating System = Mac OS X version 10.3.9 running on ppc Java; VM; Vendor = 1.4.2_05; Java HotSpot(TM) Client VM 1.4.2-38; Apple Computer, Inc. Java Home = /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home System Locale; Encod. = en_US (nb); MacRoman Error details: *********** Exception occurred ************ at 9:17 PM on Apr 19, 2005 java.lang.NullPointerException at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paintTabContent(AquaViewTabDisplayerUI. java:170) at org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.paint(AbstractViewTabDisplayerUI.java: 150) at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paint(AquaViewTabDisplayerUI.java:86) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent._paintImmediately(JComponent.java:4707) at javax.swing.JComponent.paintImmediately(JComponent.java:4489) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:436) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java: 117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) *********** Exception occurred ************ at 9:17 PM on Apr 19, 2005 java.lang.NullPointerException at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paintTabContent(AquaViewTabDisplayerUI. java:170) at org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.paint(AbstractViewTabDisplayerUI.java: 150) at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paint(AquaViewTabDisplayerUI.java:86) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JLayeredPane.paint(JLayeredPane.java:557) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:34) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60) at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97) at java.awt.Container.paint(Container.java:1325) at sun.awt.RepaintArea.paint(RepaintArea.java:194) at apple.awt.ComponentModel.handleEvent(ComponentModel.java:281) at java.awt.Component.dispatchEventImpl(Component.java:3744) at java.awt.Container.dispatchEventImpl(Container.java:1671) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3543) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) *********** Exception occurred ************ at 9:17 PM on Apr 19, 2005 java.lang.NullPointerException at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paintTabContent(AquaViewTabDisplayerUI. java:170) at org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI.paint(AbstractViewTabDisplayerUI.java: 150) at org.netbeans.swing.tabcontrol.plaf.AquaViewTabDisplayerUI.paint(AquaViewTabDisplayerUI.java:86) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent._paintImmediately(JComponent.java:4707) at javax.swing.JComponent.paintImmediately(JComponent.java:4489) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:436) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java: 117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
reassigning
Created attachment 21747 [details] diff of bugfix
fixed in trunk, quite simple fix. QA please consider it this shall go to 4.1 branch as well.
too late, but I vote for .... Honza, Martin ?
P1? Are Mac users likely to be switching to the SDI mode frequently?
Have a dual 17" monitor set up, so SDI mode is very useful to move all the palette windows to the 2nd monitor, removing clutter and allowing a larger editor window without having to hide/minimise everything else. This is also the main reason why I don't use Eclipse. As the last time I tried it, it won't allow you to drag windows out of the main frame and onto a 2nd screen.
jasonhh0310, your case sounds convincing to me. :-) Milos, please prepare an integration into release41. If there is another RC build, it should be able to make it.
Agreed, it can go into 4.1.
Diff reviewed, OK, simple, just null check.
merged to 4.1 branch
verified