Bug#820227: josm: NPE when reordering relation elements

Roland Hieber rohieb at rohieb.name
Wed Apr 6 18:34:14 UTC 2016


Package: josm
Version: 0.0.svn9979+dfsg-1
Severity: normal

Dear Maintainer,

I did the following:
* Move my ~/.josm to somewhere else
* Start JOSM
* File -> Download Object, import relation 3067629
* Open the imported relation in the relation editor
* Select a way segment that is in the wrong place (the line in the right column
  has a gap)
* Try to reorder this way segments by clicking the button "Move currently
  selected members down".

As soon as I do the last action, JOSM presents me a window "Unexpected
Exception: [Report Bug] [Do Nothing]".

However, JOSM still works like before when I click the button "do nothing", but
the exception occurs again when I click the "move down" button. But not always!
Sometimes, I can reorder relation members without the exception window
appearing.

I'm on XFCE with lightdm, but this also happens often on my usual awesome-wm
desktop. It happens with Java 7 as well as with Java 8. Since the exception
stack trace refers to libatk, those are the versions of installed packages on my
system:

	$ dpkg -l libatk*|grep '^ii'
	ii  libatk-bridge2.0-0:amd64      2.18.1-3
	ii  libatk-wrapper-java           0.33.3-6
	ii  libatk-wrapper-java-jni:amd64 0.33.3-6
	ii  libatk1.0-0:amd64             2.18.0-1
	ii  libatk1.0-data                2.18.0-1
	ii  libatkmm-1.6-1v5:amd64        2.24.2-1

(I'm not sure if this is a bug in JOSM or really in ATK, or in something else.)

This is the info when I click the "Report Bug" button:

{{{
Build-Name:Debian
Build-Date:2016-03-13 18:06:27
Revision:9979
Is-Local-Build:false
Debian-Release:0.0.svn9979+dfsg-1

Identification: JOSM/1.5 (9979 Debian en) Linux Debian GNU/Linux testing-proposed-updates (sid)
Memory Usage: 188 MB / 844 MB (115 MB allocated, but free)
Java version: 1.8.0_72-internal-b15, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found


Last errors/warnings:
- E: java.lang.NullPointerException

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionTypeCalculator.determineOnewayConnectionType(WayConnectionTypeCalculator.java:146)
	at org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionTypeCalculator.updateLinks(WayConnectionTypeCalculator.java:71)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.getWayConnection(MemberTableModel.java:761)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTable$ZoomToGapAction.getConnectionType(MemberTable.java:214)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTable$ZoomToGapAction.hasGap(MemberTable.java:221)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTable$ZoomToGapAction.updateEnabledState(MemberTable.java:245)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTable$ZoomToGapAction.valueChanged(MemberTable.java:250)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
	at javax.swing.DefaultListSelectionModel.addSelectionInterval(DefaultListSelectionModel.java:518)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.moveUp(MemberTableModel.java:266)
	at org.openstreetmap.josm.gui.dialogs.relation.actions.MoveUpAction.actionPerformed(MoveUpAction.java:38)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6535)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6300)
	at java.awt.Container.processEvent(Container.java:2236)
	at java.awt.Component.dispatchEventImpl(Component.java:4891)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Component.dispatchEvent(Component.java:4713)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2280)
	at java.awt.Window.dispatchEventImpl(Window.java:2750)
	at java.awt.Component.dispatchEvent(Component.java:4713)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	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:76)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:697)
	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)
}}}

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (170, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages josm depends on:
ii  default-jre [java7-runtime]      2:1.8-57
ii  fonts-noto                       20160116-1
ii  jmapviewer                       1.15+dfsg-1
ii  libcommons-compress-java         1.10-2
ii  libcommons-logging-java          1.2-1
ii  libgettext-commons-java          0.9.6-3
ii  liboauth-signpost-java           1.2.1.2-1.3
ii  libsvgsalamander-java            0~svn95-1
ii  openjdk-7-jre [java7-runtime]    7u95-2.6.4-1
ii  openjdk-8-jre [java7-runtime]    8u72-b15-4
ii  openstreetmap-map-icons-classic  1:0.0.svn32088-1

Versions of packages josm recommends:
pn  josm-l10n         <none>
pn  josm-plugins      <none>
ii  webkit-image-gtk  0.0.svn25399-3

josm suggests no packages.

-- debconf-show failed



More information about the Pkg-grass-devel mailing list