Modify ↓
#22834 closed defect (duplicate)
NPE at org.openstreetmap.josm.tools.GeoPropertyIndex$GPLevel.getBounded
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2023-03-01 15:17:42 +0100 (Wed, 01 Mar 2023) Build-Date:2023-03-02 02:30:57 Revision:18678 Relative:URL: ^/trunk Identification: JOSM/1.5 (18678 pt_BR) Windows 10 64-Bit OS Build number: Windows 10 Enterprise 2009 (19045) Memory Usage: 230 MB / 247 MB (101 MB allocated, but free) Java version: 1.8.0_202-b08, Oracle Corporation, Java HotSpot(TM) Client VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 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: pt_BR Numbers with default locale: 1234567890 -> 1234567890 Dataset consistency test: No problems found Last errors/warnings: - 00139.883 W: java.net.SocketTimeoutException: connect timed out - 00139.884 W: Already here java.net.SocketTimeoutException: connect timed out - 00154.900 W: java.net.SocketTimeoutException: connect timed out - 00154.900 W: Already here java.net.SocketTimeoutException: connect timed out - 00169.912 W: java.net.SocketTimeoutException: connect timed out - 00169.913 W: Already here java.net.SocketTimeoutException: connect timed out - 00169.914 W: Already here java.net.SocketTimeoutException: connect timed out - 00169.915 E: Erro ao inicializar teste ApiCapabilitiesTest: - 00325.620 E: Error in primitive hover listener: java.lang.NullPointerException - 00325.632 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 (18) of main java.lang.NullPointerException at org.openstreetmap.josm.tools.GeoPropertyIndex$GPLevel.getBounded(GeoPropertyIndex.java:142) at org.openstreetmap.josm.tools.GeoPropertyIndex$GPLevel.get(GeoPropertyIndex.java:81) at org.openstreetmap.josm.tools.GeoPropertyIndex.get(GeoPropertyIndex.java:49) at org.openstreetmap.josm.tools.Territories.lambda$getRegionalTaginfoUrls$4(Territories.java:237) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.HashMap$EntrySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(Unknown Source) at java.util.stream.StreamSpliterators$DistinctSpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceTask.doLeaf(Unknown Source) at java.util.stream.ReduceOps$ReduceTask.doLeaf(Unknown Source) at java.util.stream.AbstractTask.compute(Unknown Source) at java.util.concurrent.CountedCompleter.exec(Unknown Source) at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.util.concurrent.ForkJoinPool.helpComplete(Unknown Source) at java.util.concurrent.ForkJoinPool.externalHelpComplete(Unknown Source) at java.util.concurrent.ForkJoinTask.externalAwaitDone(Unknown Source) at java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source) at java.util.concurrent.ForkJoinTask.invoke(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateParallel(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at org.openstreetmap.josm.tools.Territories.getRegionalTaginfoUrls(Territories.java:242) at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.setupTaginfoNationalActions(PropertiesDialog.java:406) at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.updateUi(PropertiesDialog.java:724) at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.updateUi(PropertiesDialog.java:703) at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.primitiveHovered(PropertiesDialog.java:689) at org.openstreetmap.josm.gui.NavigatableComponent.lambda$firePrimitiveHovered$2(NavigatableComponent.java:193) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDT(GuiHelper.java:200) at org.openstreetmap.josm.gui.NavigatableComponent.firePrimitiveHovered(NavigatableComponent.java:190) at org.openstreetmap.josm.gui.NavigatableComponent.updateHoveredPrimitive(NavigatableComponent.java:204) at org.openstreetmap.josm.gui.NavigatableComponent.access$100(NavigatableComponent.java:80) at org.openstreetmap.josm.gui.NavigatableComponent$PrimitiveHoverMouseListener.mouseMoved(NavigatableComponent.java:1796) at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source) at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source) at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source) at java.awt.Component.processMouseMotionEvent(Unknown Source) at javax.swing.JComponent.processMouseMotionEvent(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.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(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)
Attachments (0)
Change History (3)
comment:1 by , 2 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
Summary: | fuck → NPE at org.openstreetmap.josm.tools.GeoPropertyIndex$GPLevel.getBounded |
comment:2 by , 2 years ago
I am not sure but I think this is an error in JOSM. This code in class PropertiesDialog
should be followed by a null check:
final LatLon center = newSel.iterator().next().getBBox().getCenter();
before calling
List<TaginfoRegionalInstance> regionalInstances = Territories.getRegionalTaginfoUrls(center);
comment:3 by , 17 months ago
Resolution: | → duplicate |
---|---|
Status: | needinfo → closed |
Note:
See TracTickets
for help on using tickets.
Similar to #22093.
Replying to anonymous:
Please, always use a 64.bit java version on a 64-bit operating system. Additionally, your java version is really old and we recommend to use Java 11+ in general and Java 17+ for Windows. If you only need Java for JOSM you might be interested in the Windows installer which includes Java, see Download but you should uninstall any JOSM and/or Java in advance.
Does that help?