Modify

Opened 11 years ago

Closed 11 years ago

#8740 closed defect (fixed)

JOSM scripting plugin: wrong preference tab identification

Reported by: DoubleA Owned by: Gubaer
Priority: normal Milestone:
Component: Plugin scripting Version:
Keywords: Cc:

Description (last modified by Don-vip)

Just installed the scripting plugin.
After activating and installing it did not properly restart JOSM, but I can live with that.
When JOSM was started manually again the scripting menu appears. But when I select configure the exception is raised.
"Show scripting console" and "Run" works.
This was the second time I tried to install it.. thus unfortunately not really usable.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-05-08 01:34:29
Last Changed Author: stoecker
Revision: 5939
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-05-07 14:05:08 +0200 (Tue, 07 May 2013)
Last Changed Rev: 5939

Identification: JOSM/1.5 (5939 en) Windows 7 32-Bit
Memory Usage: 37 MB / 247 MB (10 MB allocated, but free)
Java version: 1.7.0_21, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.policy=file:C:\Program Files\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Xverify:remote, -Djnlpx.home=C:\Program Files\Java\jre7\bin, -Djnlpx.origFilenameArg=C:\Users\Andreas\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\73111055-2a7c5983, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Xbootclasspath/a:C:\Program Files\Java\jre7\lib\javaws.jar;C:\Program Files\Java\jre7\lib\deploy.jar;C:\Program Files\Java\jre7\lib\plugin.jar, -Djnlpx.splashport=53732, -Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=C:\Program Files\Java\jre7\bin\javaw.exe, -Djnlpx.vmargs=-Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp]

Plugin: AddrInterpolation (29435)
Plugin: FixAddresses (29519)
Plugin: HouseNumberTaggingTool (29487)
Plugin: OpeningHoursEditor (29435)
Plugin: RoadSigns (29435)
Plugin: buildings_tools (29435)
Plugin: continuosDownload (28565)
Plugin: mapdust (29525)
Plugin: openstreetbugs (29435)
Plugin: public_transport (29435)
Plugin: scripting (30400)
Plugin: turnrestrictions (29435)

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane$1.identify(PreferenceTabbedPane.java:203)
	at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.selectTabBy(PreferenceTabbedPane.java:191)
	at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.selectTabByName(PreferenceTabbedPane.java:200)
	at org.openstreetmap.josm.gui.preferences.PreferenceDialog.selectPreferencesTabByName(PreferenceDialog.java:130)
	at org.openstreetmap.josm.plugins.scripting.preferences.ConfigureAction.actionPerformed(ConfigureAction.java:27)
	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.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(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 (5)

comment:1 by Don-vip, 11 years ago

Description: modified (diff)
Summary: JOSM scripting plugin -> configure causes exceptionJOSM scripting plugin -> configure causes NPE in core

NPE needs to be fixed in core, but there is also something to fix in plugin I think.

comment:2 by Don-vip, 11 years ago

In 5973/josm:

see #8740 - fix NPE in core with plugins defining invalid preferences (scripting)

comment:3 by Don-vip, 11 years ago

Owner: changed from team to Gubaer

comment:4 by Don-vip, 11 years ago

Summary: JOSM scripting plugin -> configure causes NPE in coreJOSM scripting plugin: wrong preference tab identification

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gubaer.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.