Modify

Opened 8 years ago

Closed 8 years ago

#14783 closed defect (fixed)

NPE at org.openstreetmap.josm.Main.addMapFrameListener(Main.java:1166)

Reported by: naoliv Owned by: Don-vip
Priority: normal Milestone: 17.05
Component: Core Version:
Keywords: regression Cc:

Description (last modified by naoliv)

While starting JOSM today:

2017-05-12 09:15:28.881 GRAVE: java.util.concurrent.ExecutionException: java.lang.NullPointerException. Causa: java.lang.NullPointerException
java.util.concurrent.ExecutionException: java.lang.NullPointerException
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitAndReturn(GuiHelper.java:169)
	at org.openstreetmap.josm.Main.exitJosm(Main.java:830)
	at org.openstreetmap.josm.actions.RestartAction.restartJOSM(RestartAction.java:87)
	at org.openstreetmap.josm.actions.RestartAction.actionPerformed(RestartAction.java:67)
	at org.openstreetmap.josm.gui.MainApplication.lambda$checkIPv6$4(MainApplication.java:496)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at org.openstreetmap.josm.Main.addMapFrameListener(Main.java:1166)
	at org.openstreetmap.josm.actions.SessionSaveAsAction.<init>(SessionSaveAsAction.java:75)
	at org.openstreetmap.josm.gui.io.SaveLayersDialog$SaveSessionAction.<init>(SaveLayersDialog.java:432)
	at org.openstreetmap.josm.gui.io.SaveLayersDialog.<init>(SaveLayersDialog.java:87)
	at org.openstreetmap.josm.gui.io.SaveLayersDialog.saveUnsavedModifications(SaveLayersDialog.java:105)
	at org.openstreetmap.josm.Main.lambda$exitJosm$7(Main.java:831)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

And there is this one too while loading log4j and indoorhelper:

2017-05-12 09:15:37.284 INFORMAÇÕES: carregando plugin 'log4j' (versão 32699)
2017-05-12 09:15:37.287 GRAVE: java.lang.NullPointerException
java.lang.NullPointerException
	at org.openstreetmap.josm.Main.addAndFireMapFrameListener(Main.java:1155)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:760)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:810)
	at org.openstreetmap.josm.plugins.PluginHandler.loadEarlyPlugins(PluginHandler.java:832)
	at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:425)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:347)

JOSM:

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-05-12 01:28:59 +0200 (Fri, 12 May 2017)
Build-Date:2017-05-12 01:34:17
Revision:12125
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12125 pt_BR) Linux Debian GNU/Linux 9.0 (stretch)
Memory Usage: 247 MB / 10206 MB (100 MB allocated, but free)
Java version: 1.8.0_131-8u131-b11-1-b11, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900, :0.1 1280x1024
Maximum Screen Size: 1600x1024
Java package: openjdk-8-jre:amd64-8u131-b11-1
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [-Dawt.useSystemAAFontSettings=on]

Plugins:
+ Create_grid_of_ways (32699)
+ FastDraw (33182)
+ ImportImagePlugin (33028)
+ OpeningHoursEditor (33185)
+ PicLayer (33148)
+ RoadSigns (33204)
+ SimplifyArea (33004)
+ apache-commons (32994)
+ buildings_tools (33004)
+ conflation (0.5.4)
+ contourmerge (1030)
+ download_along (32946)
+ editgpx (33004)
+ ejml (32680)
+ geojson (52)
+ geotools (33042)
+ importvec (33088)
+ indoorhelper (33088)
+ jts (32699)
+ log4j (32699)
+ measurement (33088)
+ merge-overlap (33154)
+ opendata (33245)
+ pbf (33241)
+ pdfimport (33004)
+ poly (33004)
+ reverter (33088)
+ scripting (30764)
+ tageditor (33021)
+ todo (30100)
+ turnlanes (33294)
+ turnlanes-tagging (254)
+ turnrestrictions (33088)
+ undelete (33263)
+ utilsplugin2 (33297)

Attachments (0)

Change History (3)

comment:1 by naoliv, 8 years ago

Description: modified (diff)

comment:2 by Don-vip, 8 years ago

Keywords: regression added
Milestone: 17.05
Owner: changed from team to Don-vip
Status: newassigned

comment:3 by Don-vip, 8 years ago

Resolution: fixed
Status: assignedclosed

In 12127/josm:

fix #14783 - fix NPE when loading early plugins. Restored the static Main.mainPanel, no other choice in order to maintain public listener methods for early plugins

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
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.