Modify

Opened 3 years ago

Closed 3 years ago

#4204 closed defect (fixed)

NPE on empty search

Reported by: Ldp Owned by: team
Priority: normal Component: Core
Version: Keywords:
Cc:

Description

When objects are on the layer, performing an empty search leads to an NPE. If the layer is completely empty, I get the regular "No match found for ".

Reproduce: Open a new layer, create a single node. Open search, leave the search box empty: NPE

Build-Date: 2009-12-19 15:38:39		
Revision: 2658
Is-Local-Build: true

Memory Usage: 15 MB / 1016 MB (1 MB allocated, but free)
Java version: 1.6.0_17

Dataset consistency test:
No problems found


Plugins: AddrInterpolation,multipoly,terracer,validator,wmsplugin
Plugin AddrInterpolation Version: 18874
Plugin multipoly Version: 19138
Plugin terracer Version: 19129
Plugin validator Version: 19072
Plugin wmsplugin Version: 18953

java.lang.NullPointerException
	at org.openstreetmap.josm.actions.search.SearchAction.getSelection(SearchAction.java:214)
	at org.openstreetmap.josm.actions.search.SearchAction.search(SearchAction.java:263)
	at org.openstreetmap.josm.actions.search.SearchAction.searchWithHistory(SearchAction.java:189)
	at org.openstreetmap.josm.actions.search.SearchAction.actionPerformed(SearchAction.java:61)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by jttt

  • Resolution set to fixed
  • Status changed from new to closed

(In [2661]) Fixed #4204 NPE on empty search

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.