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 137301 - NPE when searching for string with no results
Summary: NPE when searching for string with no results
Status: RESOLVED DUPLICATE of bug 137259
Alias: None
Product: platform
Classification: Unclassified
Component: Quick Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 13:36 UTC by Jaromir Uhrik
Modified: 2008-12-22 11:35 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 Jaromir Uhrik 2008-06-16 13:36:15 UTC
Product Version: NetBeans IDE Dev (Build 200806160002)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

-type some stupid string like "hello there" and push Enter key
->>the following NPE appears in the exception dialog:

--------------------------------------%<---------------------------------------
java.lang.NullPointerException
	at org.netbeans.modules.quicksearch.recent.RecentSearches.add(RecentSearches.java:70)
	at org.netbeans.modules.quicksearch.QuickSearchPopup.invoke(QuickSearchPopup.java:74)
	at org.netbeans.modules.quicksearch.QuickSearchComboBar.commandKeyPressed(QuickSearchComboBar.java:224)
	at org.netbeans.modules.quicksearch.QuickSearchComboBar.access$500(QuickSearchComboBar.java:62)
	at org.netbeans.modules.quicksearch.QuickSearchComboBar$4.keyPressed(QuickSearchComboBar.java:178)
	at java.awt.Component.processKeyEvent(Component.java:5560)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2722)
	at java.awt.Component.processEvent(Component.java:5379)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4068)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3903)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
	at java.awt.Component.dispatchEventImpl(Component.java:3941)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3903)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
--------------------------------------%<---------------------------------------
Comment 1 David Simonek 2008-06-17 13:19:44 UTC
Yes, dupl of 137259

*** This issue has been marked as a duplicate of 137259 ***