NPE in History Window for primitives with more than 100 versions
What steps will reproduce the problem?
- Load https://www.openstreetmap.org/relation/1350901
- Strg+H
- click on one of the A B radio buttons of version 1 on the left
- NPE
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-03-17 02:02:14 +0100 (Thu, 17 Mar 2016)
Build-Date:2016-03-17 02:32:43
Revision:10003
Relative:URL: ^/trunk
Identification: JOSM/1.5 (10003 de) Windows 7 32-Bit
Memory Usage: 375 MB / 742 MB (88 MB allocated, but free)
Java version: 1.8.0_73-b02, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:C:\Program Files\Java\jre1.8.0_73\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files\josm-latest-bla.jnlp, -Djnlpx.remove=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=256m,768m, -Djnlpx.splashport=59167, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAA==]
Dataset consistency test: No problems found
Plugins:
- AddrInterpolation (31772)
- DirectDownload (31934)
- DirectUpload (31912)
- HouseNumberTaggingTool (31772)
- OpeningHoursEditor (31772)
- Tracer2 (32042)
- apache-commons (31895)
- apache-http (31895)
- buildings_tools (31895)
- editgpx (31772)
- imagery_offset_db (32046)
- log4j (31895)
- measurement (31895)
- photo_geotagging (31895)
- photoadjust (32016)
- reverter (32005)
- tag2link (31910)
- tagging-preset-tester (31895)
- terracer (31895)
- turnrestrictions (31895)
- undelete (31895)
- utilsplugin2 (32099)
- wikipedia (32058)
Last errors/warnings:
- E: java.lang.NullPointerException
- E: java.lang.NullPointerException
- E: java.lang.NullPointerException
- E: java.lang.NullPointerException
java.lang.NullPointerException
at org.openstreetmap.josm.gui.history.VersionInfoPanel.update(VersionInfoPanel.java:228)
at org.openstreetmap.josm.gui.history.VersionInfoPanel.update(VersionInfoPanel.java:204)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at org.openstreetmap.josm.gui.history.HistoryBrowserModel.setCurrentPointInTime(HistoryBrowserModel.java:343)
at org.openstreetmap.josm.gui.history.HistoryBrowserModel$VersionTableModel.setCurrentPointInTime(HistoryBrowserModel.java:485)
at org.openstreetmap.josm.gui.history.HistoryBrowserModel$VersionTableModel.setValueAt(HistoryBrowserModel.java:449)
at javax.swing.JTable.setValueAt(Unknown Source)
at javax.swing.JTable.editingStopped(Unknown Source)
at javax.swing.AbstractCellEditor.fireEditingStopped(Unknown Source)
at org.openstreetmap.josm.gui.history.VersionTable$RadioButtonEditor.itemStateChanged(VersionTable.java:303)
at javax.swing.AbstractButton.fireItemStateChanged(Unknown Source)
at javax.swing.AbstractButton$Handler.itemStateChanged(Unknown Source)
at javax.swing.DefaultButtonModel.fireItemStateChanged(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.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 javax.swing.plaf.basic.BasicTableUI$Handler.repostEvent(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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.
Change History
(6)
Keywords: |
history npe added
|
Keywords: |
api added
|
Summary: |
NPE in History Window → NPE in History Window for primitives with more than 100 versions
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Problem comes from number of versions (115). JOSM requests the 115 versions at once with:
https://api.openstreetmap.org/api/0.6/changesets?changesets=11693747,15496169,23653985,15837693,32888825,6928231,7700091,34243588,26908041,27034248,8164969,15565819,7973486,27074693,13187284,9207955,22735941,7690069,11691670,14641658,21630319,37205778,7972446,20290590,30094304,27152813,10362792,15567578,34248243,27446429,27139290,7972403,27074519,27097558,35901303,19958119,27034055,32835477,12860583,31748743,26991357,11257292,11691733,30074535,6818584,12448717,26908141,10098147,15730313,9764847,8276482,10097380,10423264,30095176,35846305,8151799,36964543,11788863,7699192,15361639,29439052,36925857,11477564,15450751,15529592,7972334,9210907,10594102,34009489,14890108,8639522,10026034,34252448,8275923,23909569,9772324,11201819,10097708,11859459,14052961,33477959,8002758,9211212,9772125,15485733,29514251,15081773,26953559,12459121,26514501,24381862,18573768,8408152,11102065,14264833,9998914,18128590,19954411,26180691,24444055,6910606,36994524,20023512,20177884,20288218,20291270,10362473,25894768,17103097,27190115,34331638,20178125,27033955
OSM API only returns 100 versions! See: osmwiki:API_v0.6#Query:_GET_.2Fapi.2F0.6.2Fchangesets