Modify ↓
Opened 5 years ago
Closed 5 years ago
#17926 closed defect (fixed)
NPE at ElevationProfile.getTimeDifference
Reported by: | Owned by: | OliverW | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin elevationprofile | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Start JOSM
- It says no information about the ElevationProfile plugin ("greffon" in french).
What is the expected result?
The ElevationProfile plugin should load.
What happens instead?
It is not loaded, so JOSM could be started with this plugin disabled.
Please provide any additional information below. Attach a screenshot if possible.
The plugin source is here https://github.com/openstreetmap/josm-plugins/tree/master/ElevationProfile
The plugin author is Oliver Wieland.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2019-07-10 00:52:47 +0200 (Wed, 10 Jul 2019) Revision:15238 Build-Date:2019-07-10 01:30:51 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (15238 fr) Windows 10 64-Bit OS Build number: Windows 10 Pro 1803 (17134) Memory Usage: 280 MB / 2042 MB (101 MB allocated, but free) Java version: 12.0.1+12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 3840x2160 Maximum Screen Size: 3840x2160 Plugins: + ElevationProfile (34977) Last errors/warnings: - W: Mettre à jour - org.openstreetmap.josm.plugins.PluginHandler$UpdatePluginsMessagePanel[,0,0,0x0,invalid,layout=java.awt.GridBagLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] - W: No configuration settings found. Using hardcoded default values for all pools. - E: Handled by bug report queue: java.lang.NullPointerException - E: Handled by bug report queue: java.lang.IllegalArgumentException: Cannot format given Object as a Date - E: Handled by bug report queue: java.lang.IllegalArgumentException: Cannot format given Object as a Date - W: Avertissement - <html>JOSM ne parvient pas à trouver d’information sur le greffon suivant :<ul><li>ElevationProfile</li></ul>Le greffon ne sera pas chargé.</html> === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (19) of main java.lang.NullPointerException at org.openstreetmap.josm.plugins.elevation.gpx.ElevationProfile.getTimeDifference(ElevationProfile.java:307) at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileDialog.updateView(ElevationProfileDialog.java:284) at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileDialog.setModel(ElevationProfileDialog.java:231) at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileDialog.setActiveLayer(ElevationProfileDialog.java:373) at org.openstreetmap.josm.plugins.elevation.gui.ElevationProfileDialog.layerAdded(ElevationProfileDialog.java:382) at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerAdded(LayerManager.java:459) at org.openstreetmap.josm.gui.layer.LayerManager.realAddLayer(LayerManager.java:234) at org.openstreetmap.josm.gui.layer.MainLayerManager.realAddLayer(MainLayerManager.java:284) at org.openstreetmap.josm.gui.layer.LayerManager.lambda$addLayer$0(LayerManager.java:218) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:239) at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:218) at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:207) at org.openstreetmap.josm.gui.io.importexport.GpxImporter.lambda$addLayers$0(GpxImporter.java:128) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:389) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) at java.base/java.security.AccessController.doPrivileged(AccessController.java:310) at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) at java.desktop/java.awt.Dialog.show(Dialog.java:1070) at java.desktop/java.awt.Component.show(Component.java:1716) at java.desktop/java.awt.Component.setVisible(Component.java:1663) at java.desktop/java.awt.Window.setVisible(Window.java:1021) at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1005) at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255) at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(AccessController.java:389) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Attachments (0)
Change History (2)
comment:1 by , 5 years ago
Component: | Core → Plugin elevationprofile |
---|---|
Owner: | changed from | to
Summary: | Error with ElevationProfile → NPE at ElevationProfile.getTimeDifference |
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in [o35066:35067].