Modify

Opened 6 years ago

Closed 6 years ago

#9988 closed defect (fixed)

NPE when viewing advanced informations of a special way

Reported by: anonymous Owned by: team
Priority: normal Milestone: 14.05
Component: Core Version:
Keywords: Cc: Manu1400

Description (last modified by Don-vip)

1/ Open (in your browser) http://taginfo.openstreetmap.fr/tags/parking=sufrace
2/ Click on http://localhost:8111/import?url=http%3A%2F%2Foapi-fr.openstreetmap.fr%2Fxapi%2Fxapi%3F*%5Bparking%253Dsufrace%5D
3/ Valid in JOSM
4/ In JOSM, click to "Affichage" > "Informations avancées" (advanced informations)
5/ Coding error :

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-04-25 17:49:40
Last Changed Author: Don-vip
Revision: 7000
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-04-25 19:46:38 +0200 (Fri, 25 Apr 2014)
Last Changed Rev: 7000

Identification: JOSM/1.5 (7000 fr) Windows 8 64-Bit
Memory Usage: 247 MB / 247 MB (7 MB allocated, but free)
Java version: 1.7.0_51, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.policy=file:C:\Program Files (x86)\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Xverify:remote, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\emmanuel\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-7de6b156, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Xbootclasspath/a:C:\Program Files (x86)\Java\jre7\lib\javaws.jar;C:\Program Files (x86)\Java\jre7\lib\deploy.jar;C:\Program Files (x86)\Java\jre7\lib\plugin.jar, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=58291, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=-Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp]

Dataset consistency test:
[SEARCH WAYS] {Way id=243090311 version=2 VT nodes=[{Node id=2505278327 version=0 IV }, {Node id=2505278313 version=0 IV }, {Node id=2505278359 version=0 IV }, {Node id=667380330 version=0 IV }, {Node id=2505278369 version=0 IV }, {Node id=2505278327 version=0 IV }]} not found using Dataset.searchWays()


Plugin: turnrestrictions (30413)

java.lang.NullPointerException
	at org.openstreetmap.josm.tools.Geometry.getCentroid(Geometry.java:703)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addSpecial(InspectPrimitiveDialog.java:244)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addPrimitive(InspectPrimitiveDialog.java:158)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataText(InspectPrimitiveDialog.java:113)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataPanel(InspectPrimitiveDialog.java:99)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.<init>(InspectPrimitiveDialog.java:76)
	at org.openstreetmap.josm.actions.InfoAction.actionPerformed(InfoAction.java:35)
	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.menuDragMouseReleased(Unknown Source)
	at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source)
	at javax.swing.JMenuItem.processMenuDragMouseEvent(Unknown Source)
	at javax.swing.JMenuItem.processMouseEvent(Unknown Source)
	at javax.swing.MenuSelectionManager.processMouseEvent(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 (4)

comment:2 Changed 6 years ago by anonymous

http://taginfo.openstreetmap.fr/keys/souce%3Aname => :

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-04-25 17:49:40
Last Changed Author: Don-vip
Revision: 7000
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-04-25 19:46:38 +0200 (Fri, 25 Apr 2014)
Last Changed Rev: 7000

Identification: JOSM/1.5 (7000 fr) Windows 8 64-Bit
Memory Usage: 223 MB / 247 MB (69 MB allocated, but free)
Java version: 1.7.0_51, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.policy=file:C:\Program Files (x86)\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Xverify:remote, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\emmanuel\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-7de6b156, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Xbootclasspath/a:C:\Program Files (x86)\Java\jre7\lib\javaws.jar;C:\Program Files (x86)\Java\jre7\lib\deploy.jar;C:\Program Files (x86)\Java\jre7\lib\plugin.jar, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=61296, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=-Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp]

Dataset consistency test:
[SEARCH WAYS] {Way id=267549744 version=1 VT nodes=[{Node id=450968436 version=0 IV }, {Node id=450968437 version=0 IV }]} not found using Dataset.searchWays()


Plugin: turnrestrictions (30413)

java.lang.NullPointerException
	at org.openstreetmap.josm.tools.Geometry.getCentroid(Geometry.java:703)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addSpecial(InspectPrimitiveDialog.java:244)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog$DataText.addPrimitive(InspectPrimitiveDialog.java:158)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataText(InspectPrimitiveDialog.java:113)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.buildDataPanel(InspectPrimitiveDialog.java:99)
	at org.openstreetmap.josm.gui.dialogs.InspectPrimitiveDialog.<init>(InspectPrimitiveDialog.java:76)
	at org.openstreetmap.josm.actions.InfoAction.actionPerformed(InfoAction.java:35)
	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)
Last edited 6 years ago by Don-vip (previous) (diff)

comment:3 Changed 6 years ago by Don-vip

Description: modified (diff)
Milestone: 14.05
Summary: coding issue message when try view advanced informations of a special wayNPE when viewing advanced informations of a special way

comment:4 Changed 6 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 7072/josm:

fix #9988 - NPE in Geometry.getCentroid()

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.