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.
[ JDK VERSION : J2SE 1.4.2_04 ] [this might be filed in the wrong place, I wasn't sure] I managed to get a NullPointerException by creating an empty file, as follows: 1. Click on the New File menu option 2. Select "Other" 3. Select Empty file 4. Enter any file name 5. Bang! NPE In fact there are two NPE's are shown below (first is first, second is second) --------------------------------------- First NPE java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:161) at org.netbeans.modules.image.NBImageIcon.<init>(NBImageIcon.java:42) at org.netbeans.modules.image.ImageViewer.initialize(ImageViewer.java:122) at org.netbeans.modules.image.ImageViewer.<init>(ImageViewer.java:99) at org.netbeans.modules.image.ImageOpenSupport.createCloneableTopComponent(ImageOpenSupport.java:72) at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:162) at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:72) at org.openide.util.Mutex.doEvent(Mutex.java:903) at org.openide.util.Mutex.writeAccess(Mutex.java:318) at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:70) at org.openide.actions.OpenAction.performAction(OpenAction.java:54) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:440) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438) at org.netbeans.modules.project.ui.ProjectUtilities$1.run(ProjectUtilities.java:132) at org.openide.util.Mutex.doEvent(Mutex.java:903) at org.openide.util.Mutex.writeAccess(Mutex.java:318) at org.netbeans.modules.project.ui.ProjectUtilities.openAndSelectNewObject(ProjectUtilities.java:124) at org.netbeans.modules.project.ui.actions.NewFile.doPerform(NewFile.java:123) at org.netbeans.modules.project.ui.actions.NewFile.actionPerformed(NewFile.java:75) at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:69) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) ------------------------------------- Second NPE java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:161) at org.netbeans.modules.image.NBImageIcon.<init>(NBImageIcon.java:42) at org.netbeans.modules.image.ImageViewer.initialize(ImageViewer.java:122) at org.netbeans.modules.image.ImageViewer.<init>(ImageViewer.java:99) at org.netbeans.modules.image.ImageOpenSupport.createCloneableTopComponent(ImageOpenSupport.java:72) at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:162) at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:72) at org.openide.util.Mutex.doEvent(Mutex.java:903) at org.openide.util.Mutex.writeAccess(Mutex.java:318) at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:70) at org.openide.actions.OpenAction.performAction(OpenAction.java:54) at org.openide.util.actions.NodeAction$1.run(NodeAction.java:174) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:172) [catch] at org.openide.loaders.TemplateWizard$5.run(TemplateWizard.java:844) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
build number of the IDE?
What file name exactly?
This was observed with build number 200408191352 (beta1) and the filename I gave was "myfile" (no extension) or "myfile.txt" - the filename doesn't seem to matter.
That's not the javadoc I'm talking about. Our company has an IDE with classes. The IDE is a Windows app with included documentation in Windows format. The other option is a website. Either way, I can't access the javadoc in NetBeans anymore. -Bryan
I no longer hjave this problem in beta 2. I recommend closing it unless anyone else can still reproduce it
OK. Thanks.