Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#10288 closed defect (fixed)

NPE testing defaultpreset without data layer

Reported by: skyper Owned by: team
Priority: normal Milestone: 14.07
Component: Core Version:
Keywords: template_report Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

Start plugin without data layer with little changed defaultpreset.xml

What is the expected result?

Tagging-preset-tester window opens.

What happens instead?


Please provide any additional information below. Attach a screenshot if possible.

It works with existing data layer. Probably similar or duplicate of #10055. Please find the test file attached.

Repository Root:
Build-Date: 2014-07-20 01:36:10
Last Changed Author: stoecker
Revision: 7318
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Date: 2014-07-19 21:12:28 +0200 (Sat, 19 Jul 2014)
Last Changed Rev: 7318

Identification: JOSM/1.5 (7318 de) Linux Debian GNU/Linux 7.6 (wheezy)
Memory Usage: 107 MB / 882 MB (31 MB allocated, but free)
Java version: 1.7.0_55, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u55-2.4.7-1~deb7u1
VM arguments: [-Djosm.home=$HOME/.josm-test]

Plugin: tagging-preset-tester (30416)

	at org.openstreetmap.josm.gui.tagging.TaggingPresetSelector.filterPresets(
	at org.openstreetmap.josm.gui.tagging.TaggingPresetSelector.<init>(
	at org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester.<init>(
	at org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$200(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	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 (1)

defaultpresets.xml (477.7 KB) - added by skyper 9 years ago.
test file

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by skyper

Attachment: defaultpresets.xml added

test file

comment:1 Changed 9 years ago by skyper

Description: modified (diff)

comment:2 Changed 9 years ago by akks

Should be fixed in [o30541]

Sorry, the bug was in JOSM code. Fixing...

comment:3 Changed 9 years ago by akks

Resolution: fixed
Status: newclosed

In 7322/josm:

fix #10288: tagging-preset-tester NPE without data layer

comment:4 Changed 9 years ago by akks

Milestone: 14.07

comment:5 Changed 9 years ago by Don-vip

Component: Plugin tagging-preset-testerCore

comment:6 Changed 9 years ago by Don-vip

In 7324/josm:

see #10288 - fix compilation warning

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.