Modify ↓
Opened 14 months ago
Closed 14 months ago
#23104 closed defect (fixed)
Exception occurred with ToDo plugin (if one or more of the selected items are not present in the ToDo window)
Reported by: | mbranco2 | Owned by: | Gnonthgol |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin todo | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Select one or more items NOT present in the ToDo window
- Click "Mark selected" button
What is the expected result?
If some of the selected items are present in the ToDo window, they should be marked; if none, nothing should happen (or, maybe, just a no-action popup message)
What happens instead?
An exception occurred
Please provide any additional information below. Attach a screenshot if possible.
This bug did NOT happen in the previous versions of the ToDo plugin
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2023-07-31 18:33:06 +0200 (Mon, 31 Jul 2023) Revision:18789 Build-Date:2023-08-01 01:30:56 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (18789 en_GB) Windows 10 64-Bit OS Build number: Windows 10 Home 2009 (19045) Memory Usage: 1426 MB / 4072 MB (344 MB allocated, but free) Java version: 17.0.7+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1.25×1.25) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: en_GB Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop] Dataset consistency test: No problems found Plugins: + FastDraw (36097) + HouseNumberTaggingTool (36097) + ImportImagePlugin (36013) + Mapillary (2.1.5) + PicLayer (1.0.2) + RelationDissolve (0.2.0) + RoadSigns (36097) + apache-commons (36034) + apache-http (35924) + areaselector (1652822522) + austriaaddresshelper (master-4e80dc2e4261d321150187f4951684ad97342d5e) + buildings_tools (36097) + contourmerge (v0.1.9) + ejml (35924) + geotools (36068) + imagery_offset_db (36079) + jackson (36034) + jaxb (35952) + jna (36005) + jts (36004) + log4j (36045) + mapwithai (807) + measurement (36097) + opendata (36097) + pbf (36034) + pdfimport (36097) + print (36079) + reltoolbox (36103) + reverter (36066) + shrinkwrap (v1.0.4) + todo (131) + turnrestrictions (36097) + utilsplugin2 (36097) + wikipedia (605) Tagging presets: + https://raw.githubusercontent.com/osmItalia/cai_josm_preset/master/cai.xml + https://josm.openstreetmap.de/josmfile?page=Presets/un_mappers&zip=1 Map paint styles: + D:\OSM\__UNosm\josm\elemstyles_UN.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/light_source&zip=1 - https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 - D:\OSM\_EVENTI\2019 Heidelberg SotM\esempioPreset.xml - D:\OSM\__UNosm\josm\elemstyles2.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1 - https://github.com/osmlab/applepaintstyles/archive/main.zip Last errors/warnings: - 231302.714 W: java.net.UnknownHostException: services.arcgisonline.com - 231302.715 W: java.net.UnknownHostException: services.arcgisonline.com - 231302.716 W: java.net.UnknownHostException: services.arcgisonline.com - 231302.718 W: java.net.UnknownHostException: services.arcgisonline.com - 231303.811 W: java.net.UnknownHostException: services.arcgisonline.com - 231303.817 W: java.net.UnknownHostException: services.arcgisonline.com - 231303.818 W: java.net.UnknownHostException: services.arcgisonline.com - 231303.819 W: java.net.UnknownHostException: services.arcgisonline.com - 231781.146 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 180 - 231944.195 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 180 === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-1 (56) of JOSM java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 180 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.base/java.util.Objects.checkIndex(Objects.java:361) at java.base/java.util.ArrayList.get(ArrayList.java:427) at org.openstreetmap.josm.plugins.todo.TodoListModel.markItems(TodoListModel.java:230) at org.openstreetmap.josm.plugins.todo.TodoDialog$MarkSelectedAction.lambda$actionPerformed$0(TodoDialog.java:448) at org.openstreetmap.josm.plugins.todo.TodoDialog.runWithPrototype(TodoDialog.java:227) at org.openstreetmap.josm.plugins.todo.TodoDialog$MarkSelectedAction.actionPerformed(TodoDialog.java:448) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at java.desktop/java.awt.Component.processEvent(Component.java:6391) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) 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)
Note:
See TracTickets
for help on using tickets.
I've got a fix incoming. It should be available in an hour or so.
See https://github.com/JOSM/todo/pull/14 .