UtilsPlugin2: NPE in ChildrenMatch#init
— at Version 2
What steps will reproduce the problem?
- Open Search dialog
- Type in
children
What is the expected result?
What happens instead?
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-04-04 22:26:00 +0200 (Mon, 04 Apr 2022)
Build-Date:2022-04-05 01:30:55
Revision:18427
Relative:URL: ^/trunk
Identification: JOSM/1.5 (18427 en) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2009 (19044)
Memory Usage: 769 MB / 1771 MB (525 MB allocated, but free)
Java version: 1.8.0_333-b02, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
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_IN
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found
Plugins:
+ AddrInterpolation (35893)
+ BuildingGeneralization (36)
+ CADTools (1008)
+ ColorPlugin (1537115529)
+ Create_grid_of_ways (35893)
+ HouseNumberTaggingTool (35893)
+ ImportImagePlugin (35893)
+ ImproveWay (32)
+ PolygonCutOut (v0.7)
+ Relation.Validation.Plugin (1.0.1)
+ RelationDissolve (0.2.0)
+ Review.Changes (1.0.5)
+ SimplifyArea (35893)
+ Tracer (35893)
+ Tracer-testing (1590860163)
+ Tracer2 (35893)
+ alignways (35893)
+ apache-commons (35893)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ buildings_tools (35893)
+ canvec_helper (35893)
+ centernode (v1.0.4)
+ changeset-viewer (v0.0.4)
+ changessum (v0.1.1)
+ colorscheme (35893)
+ conflation (0.6.9)
+ contourmerge (v0.1.8)
+ damn (0.5.0)
+ datepicker (0.0.1)
+ easypresets (1623509627)
+ ejml (35893)
+ geotools (35893)
+ gridify (1606242219)
+ gson (35893)
+ intersection (0.0.7)
+ javafx (35807)
+ jaxb (35893)
+ jna (35893)
+ jts (35893)
+ junctionchecking (35893)
+ log4j (35893)
+ mapathoner (1.1.11)
+ measurement (35893)
+ merge-overlap (35893)
+ opendata (35893)
+ poly (35893)
+ rasterfilters (1.0.3)
+ scripting (30798)
+ shrinkwrap (v1.0.4)
+ splinex (35893)
+ tageditor (35893)
+ tagging-preset-tester (35893)
+ terracer (35893)
+ todo (30306)
+ turnlanes (35893)
+ turnrestrictions (35893)
+ utilsplugin2 (35951)
Tagging presets:
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Community_FR.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Building_FR.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Internal Roads.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Walkway.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Entrance.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Gates.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Elevator.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\RoadAccess.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Restrictions.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Unit _FR.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Amenity.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Acceptable package size.xml
+ D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Staircase.xml
+ <josm.pref>/EasyPresets.xml
Map paint styles:
+ https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/SidewalksAndFootways&zip=1
- https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss
- https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Ph_Typhoon&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings_en&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings_sv&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings_uk&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/SimpleBuildingTags&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
Last errors/warnings:
- 00009.915 E: java.nio.file.NoSuchFileException: D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Acceptable package size.xml
- 00009.915 E: D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Acceptable package size.xml
- 00009.916 E: java.nio.file.NoSuchFileException: D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Staircase.xml
- 00009.916 E: D:\Madappaswamy\FRITS_Project\Regarding France preset\France\Staircase.xml
- 00009.916 E: java.nio.file.NoSuchFileException: <josm.pref>\EasyPresets.xml
- 00009.917 E: <josm.pref>/EasyPresets.xml
- 00010.031 W: Cannot lock cache directory. Will not use disk cache
- 00045.494 E: NullPointerException occurred because of JDK bug 6322854. Copy/Paste operation has not been performed. Please complain to Oracle: https://bugs.openjdk.java.net/browse/JDK-6322854: java.lang.NullPointerException
- 00046.847 E: Handled by bug report queue: java.lang.NullPointerException
- 00046.881 E: Handled by bug report queue: java.lang.NullPointerException
=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.
Warning issued by: BugReportExceptionHandler#handleException
=== STACK TRACE ===
Thread: AWT-EventQueue-0 (20) of main
java.lang.NullPointerException
at org.openstreetmap.josm.plugins.utilsplugin2.search.ChildrenMatch.<init>(ChildrenMatch.java:21)
at org.openstreetmap.josm.plugins.utilsplugin2.search.UtilsSimpleMatchFactory.get(UtilsSimpleMatchFactory.java:38)
at org.openstreetmap.josm.data.osm.search.SearchCompiler.parseFactor(SearchCompiler.java:2163)
at org.openstreetmap.josm.data.osm.search.SearchCompiler.parseExpressionStep1(SearchCompiler.java:2069)
at org.openstreetmap.josm.data.osm.search.SearchCompiler.parseExpression(SearchCompiler.java:2057)
at org.openstreetmap.josm.data.osm.search.SearchCompiler.parse(SearchCompiler.java:2042)
at org.openstreetmap.josm.data.osm.search.SearchCompiler.compile(SearchCompiler.java:1996)
at org.openstreetmap.josm.gui.dialogs.SearchDialog$1.isValid(SearchDialog.java:211)
at org.openstreetmap.josm.gui.dialogs.SearchDialog$1.validate(SearchDialog.java:196)
at org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator.focusLost(AbstractTextComponentValidator.java:180)
at java.awt.AWTEventMulticaster.focusLost(Unknown Source)
at java.awt.Component.processFocusEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(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.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.SentEvent.dispatch(Unknown Source)
at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.sendMessage(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.SequencedEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.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.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.openstreetmap.josm.gui.HelpAwareOptionPane.doShowOptionDialog(HelpAwareOptionPane.java:353)
at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:289)
at org.openstreetmap.josm.plugins.PluginHandler.lambda$askUpdateDisableKeepPluginAfterException$15(PluginHandler.java:1485)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.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.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.openstreetmap.josm.gui.ExtendedDialog.setVisible(ExtendedDialog.java:462)
at org.openstreetmap.josm.gui.ExtendedDialog.showDialog(ExtendedDialog.java:258)
at org.openstreetmap.josm.actions.search.SearchAction.showSearchDialog(SearchAction.java:162)
at org.openstreetmap.josm.actions.search.SearchAction.search(SearchAction.java:189)
at org.openstreetmap.josm.actions.search.SearchAction.actionPerformed(SearchAction.java:136)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.KeyboardManager.fireBinding(Unknown Source)
at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(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$500(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$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.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$JavaSecurityAccessImpl.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)
I've been able to reproduce (I just put in the steps to reproduce in the original ticket).
I'd have to check, but I feel like some of the
utilsplugin2search extensions might duplicate core functionality now (they were added in 2014).This one (
children) seems to duplicatenodes:/ways:/members:at least partially.