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 48008 - [40cat] NullPointerException
Summary: [40cat] NullPointerException
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Image (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-26 16:37 UTC by hopeless
Modified: 2004-10-08 14:59 UTC (History)
0 users

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 hopeless 2004-08-26 16:37:22 UTC
[ 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)
Comment 1 _ ttran 2004-09-05 20:25:59 UTC
build number of the IDE?
Comment 2 Jesse Glick 2004-09-06 22:21:37 UTC
What file name exactly?
Comment 3 hopeless 2004-09-09 11:36:53 UTC
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.  
Comment 4 Unknown 2004-09-10 14:41:51 UTC
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
Comment 5 hopeless 2004-10-08 14:27:27 UTC
I no longer hjave this problem in beta 2.  I recommend closing it
unless anyone else can still reproduce it
Comment 6 Jan Jancura 2004-10-08 14:59:20 UTC
OK. Thanks.