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 64285 - NPE in add library dialog
Summary: NPE in add library dialog
Status: CLOSED DUPLICATE of bug 64181
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-13 21:56 UTC by _ tboudreau
Modified: 2005-11-04 13:04 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 _ tboudreau 2005-09-13 21:56:23 UTC
Selecting any element in the Add Library dialog (or typing any text in the
filter field) throws the following exception:

java.lang.NullPointerException
	at org.netbeans.modules.apisupport.project.Util.findJavadoc(Util.java:425)
	at
org.netbeans.modules.apisupport.project.ui.customizer.AddModulePanel$1.valueChanged(AddModulePanel.java:72)
	at javax.swing.JList.fireSelectionValueChanged(JList.java:1667)
	at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1681)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
	at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:408)
	at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:417)
	at
javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:441)
	at javax.swing.JList.setSelectedIndex(JList.java:2082)
[catch] at
org.netbeans.modules.apisupport.project.ui.customizer.AddModulePanel$4$1.run(AddModulePanel.java:192)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
	at java.awt.Dialog$1.run(Dialog.java:1029)
	at java.awt.Dialog.show(Dialog.java:1067)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
	at org.openide.util.Mutex.readAccess(Mutex.java:183)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:816)
	at org.netbeans.core.NotifyException.updateState(NotifyException.java:297)
	at org.netbeans.core.NotifyException.access$400(NotifyException.java:55)
	at org.netbeans.core.NotifyException$2.run(NotifyException.java:228)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:175)
	at java.awt.Dialog$1.run(Dialog.java:1029)
	at java.awt.Dialog.show(Dialog.java:1067)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1146)
	at org.openide.util.Mutex.readAccess(Mutex.java:183)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:816)
	at java.awt.Component.show(Component.java:1405)
	at java.awt.Component.setVisible(Component.java:1358)
	at java.awt.Window.setVisible(Window.java:577)
	at java.awt.Dialog.setVisible(Dialog.java:961)
	at
org.netbeans.modules.apisupport.project.ui.customizer.CustomizerLibraries.addModuleDependency(CustomizerLibraries.java:385)
	at
org.netbeans.modules.apisupport.project.ui.customizer.CustomizerLibraries.access$300(CustomizerLibraries.java:43)
	at
org.netbeans.modules.apisupport.project.ui.customizer.CustomizerLibraries$3.actionPerformed(CustomizerLibraries.java:136)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1863)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2183)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:5924)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:5689)
	at java.awt.Container.processEvent(Container.java:1960)
	at java.awt.Component.dispatchEventImpl(Component.java:4363)
	at java.awt.Container.dispatchEventImpl(Container.java:2018)
	at java.awt.Component.dispatchEvent(Component.java:4197)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4222)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3886)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3816)
	at java.awt.Container.dispatchEventImpl(Container.java:2004)
	at java.awt.Window.dispatchEventImpl(Window.java:2066)
	at java.awt.Component.dispatchEvent(Component.java:4197)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:270)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:198)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:171)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:166)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:158)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:119)
Comment 1 Jesse Glick 2005-09-13 23:15:10 UTC
Dupe, I think?
Comment 2 Martin Krauskopf 2005-09-14 07:12:56 UTC
Yes, already fixed dupe. Sorry, I know this one was *very* annoying.

*** This issue has been marked as a duplicate of 64181 ***
Comment 3 Tomas Danek 2005-11-04 13:04:21 UTC
verified as duplicate/closed