Opened 8 years ago

Closed 8 years ago

#7498 closed defect (fixed)

NPE when using filter

Reported by: Cobra Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: template_report Cc: bastiK


What steps will reproduce the problem?

  1. set a filter (e.g. "highway:", inverted, do not hide the filtered elements)
  2. move the cursor over a node of a non-filtered way (e.g. highway=residential), causing it to be highlighted
  3. trigger a redraw (either by the initial highlight or by doing anything else including switching windows)

What is the expected result?
obviously nothing except for the highlighting

What happens instead?
Tthis error. again and again. josm is rather unusable.

Please provide any additional information below. Attach a screenshot if
This seems to depend on freshly downloaded/opened data. Deactivating and reactiving the filter after this error occurred won't trigger it again.

I'm rating this as major, since it makes josm quite unusable but saving and uploading is still possible when suppressing further errors of this type.

Repository Root:
Build-Date: 2012-03-11 02:32:23
Last Changed Author: Don-vip
Revision: 5068
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Date: 2012-03-11 02:01:33 +0100 (Sun, 11 Mar 2012)
Last Changed Rev: 5068

Identification: JOSM/1.5 (5068 en)
Memory Usage: 275 MB / 910 MB (68 MB allocated, but free)
Java version: 1.6.0_30, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: FastDraw (27981)
Plugin: FixAddresses (27907)
Plugin: ImportImagePlugin (27906)
Plugin: InfoMode (27981)
Plugin: PicLayer (27883)
Plugin: alignways (27852)
Plugin: buildings_tools (27984)
Plugin: licensechange (27964)
Plugin: measurement (27957)
Plugin: openstreetbugs (27852)
Plugin: openvisible (27852)
Plugin: pdfimport (27867)
Plugin: proj4j (27902)
Plugin: restart (27852)
Plugin: reverter (27865)
Plugin: terracer (27852)
Plugin: undelete (27852)
Plugin: utilsplugin2 (28028)

	at javax.swing.GrayFilter.createDisabledImage(
	at org.openstreetmap.josm.gui.mappaint.MapImage.getDisabled(
	at org.openstreetmap.josm.gui.mappaint.NodeElemStyle.paintPrimitive(
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(
	at org.openstreetmap.josm.gui.MapView.paintLayer(
	at org.openstreetmap.josm.gui.MapView.paint(
	at javax.swing.JComponent.paintChildren(
	at javax.swing.JSplitPane.paintChildren(
	at javax.swing.JComponent.paint(
	at javax.swing.JComponent.paintToOffscreen(
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(
	at javax.swing.RepaintManager$PaintManager.paint(
	at javax.swing.BufferStrategyPaintManager.paint(
	at javax.swing.RepaintManager.paint(
	at javax.swing.JComponent._paintImmediately(
	at javax.swing.JComponent.paintImmediately(
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.prePaintDirtyRegions(
	at javax.swing.RepaintManager.access$700(
	at javax.swing.RepaintManager$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$000(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by akks

I was able to reproduce it only when using Ctrl-Alt-E to turn filter on/off.

comment:2 Changed 8 years ago by akks

In 5074/josm:

Fix NPE for disabled image loading, see #7498, #7491 (please check!)

comment:3 Changed 8 years ago by akks

Cc: bastiK added

comment:4 Changed 8 years ago by akks

Resolution: fixed
Status: newclosed

seem to be fixed.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.