#7674 closed defect (fixed)
NPE clicking on reference/subject only
Reported by: | skyper | Owned by: | joshdoe |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Plugin conflation | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- select several address nodes
- click on either reference/subject only
What is the expected result?
nothing
What happens instead?
NPE
Please provide any additional information below. Attach a screenshot if
possible.
Just installed plugin and did not use it once.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2012-05-05 01:31:01 Last Changed Author: simon04 Revision: 5211 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2012-05-04 19:15:59 +0200 (Fri, 04 May 2012) Last Changed Rev: 5211 Identification: JOSM/1.5 (5211 en) Memory Usage: 177 MB / 1820 MB (90 MB allocated, but free) Java version: 1.6.0_24, Sun Microsystems Inc., OpenJDK 64-Bit Server VM Operating system: Linux Dataset consistency test: No problems found Plugin: PicLayer (27883) Plugin: conflation (0.1.3) Plugin: jts (28210) Plugin: utilsplugin2 (28350) java.lang.NoSuchMethodError: javax.swing.JList.getSelectedValuesList()Ljava/util/List; at org.openstreetmap.josm.plugins.conflation.ConflationToggleDialog$RemoveAction.updateEnabledState(ConflationToggleDialog.java:454) at org.openstreetmap.josm.plugins.conflation.ConflationToggleDialog$RemoveAction.stateChanged(ConflationToggleDialog.java:476) at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:417) at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:270) at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:133) at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:67) at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:616) at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:591) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:3639) at javax.swing.plaf.synth.SynthTabbedPaneUI$1.mousePressed(SynthTabbedPaneUI.java:295) at java.awt.Component.processMouseEvent(Component.java:6265) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6033) at java.awt.Container.processEvent(Container.java:2045) at java.awt.Component.dispatchEventImpl(Component.java:4629) at java.awt.Container.dispatchEventImpl(Container.java:2103) at java.awt.Component.dispatchEvent(Component.java:4455) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4294) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227) at java.awt.Container.dispatchEventImpl(Container.java:2089) at java.awt.Window.dispatchEventImpl(Window.java:2517) at java.awt.Component.dispatchEvent(Component.java:4455) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649) at java.awt.EventQueue.access$000(EventQueue.java:96) at java.awt.EventQueue$1.run(EventQueue.java:608) at java.awt.EventQueue$1.run(EventQueue.java:606) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116) at java.awt.EventQueue$2.run(EventQueue.java:622) at java.awt.EventQueue$2.run(EventQueue.java:620) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105) at java.awt.EventQueue.dispatchEvent(EventQueue.java:619) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Attachments (0)
Change History (8)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Replying to joshdoe:
Thanks for the bug report, but I'm not able to reproduce this problem. Could you give some more details on the exact actions you performed, including maybe an example file? Not sure why
getSelectedValuesList()
wouldn't be found...
Just tested it again with new preferences directory:
- rm -r ~/.josm
- java -jar josm-latest.jar
- install utilsplugin2, jts, conflation
- quit and restart
- open new layer
- open conflation toggle dialog
- click on slide "references only" or "subject only"
NPE
follow-up: 4 comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ah, you mean double-clicking on the empty list? Then yes, there is an NPE when you do that, and it's fixed now, and will go in the next release. Thanks for reporting this!
comment:4 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Replying to joshdoe:
Ah, you mean double-clicking on the empty list? Then yes, there is an NPE when you do that, and it's fixed now, and will go in the next release. Thanks for reporting this!
No Yes, I just click without selecting anything nor configuring anything on the second or third slide in the toggle dialogue (empty lists).
Still exist with r5218 and plugin version 0.1.4
Debian wheezy (testing) with gnome3 and gtk3
comment:5 by , 13 years ago
I just tested again and it has nothing to do with the "look and feel" but depends on the java version.
java version "1.7.0_03-icedtea" OpenJDK Runtime Environment (IcedTea7 2.1) (7~u3-2.1-3) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
works
java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-3) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
NPE
comment:6 by , 13 years ago
Ah, JList
has getSelectedValues()
deprecated in 1.7, and getSelectedValuesList()
doesn't exist in 1.6. It's annoying to use the 1.6 form, but it's best to do so. I'll try and fix this soon.
follow-up: 8 comment:7 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Try v0.1.5 which should have this fixed so it should work in Java 1.6. Please reopen if this is not the case for you. Thanks!
comment:8 by , 13 years ago
Replying to joshdoe:
Try v0.1.5 which should have this fixed so it should work in Java 1.6. Please reopen if this is not the case for you. Thanks!
Yes it does work with java 1.6. - Thanks
Thanks for the bug report, but I'm not able to reproduce this problem. Could you give some more details on the exact actions you performed, including maybe an example file? Not sure why
getSelectedValuesList()
wouldn't be found...