Modify

Opened 10 years ago

Closed 10 years ago

#10651 closed defect (fixed)

NPE in AdvancedKeyPressDetector.isFocusInMainWindow

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.10
Component: Core Version:
Keywords: regression Cc:

Description

I actually don't know exactly what I was doing, but I was moving the map and then clicked to hide the Bing layer.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-10-20 01:35:04
Last Changed Author: Don-vip
Revision: 7637
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-10-20 00:31:02 +0200 (Mon, 20 Oct 2014)
Last Changed Rev: 7637

Identification: JOSM/1.5 (7637 pt_BR) Linux Debian GNU/Linux testing (jessie)
Memory Usage: 4020 MB / 8158 MB (1472 MB allocated, but free)
Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u65-2.5.2-4
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Plugins:
- Create_grid_of_ways (30416)
- OpeningHoursEditor (30609)
- PicLayer (30436)
- SimplifyArea (30624)
- buildings_tools (30485)
- contourmerge (1012)
- download_along (30416)
- editgpx (30634)
- geotools (30569)
- importvec (30416)
- jts (30416)
- log4j (30416)
- measurement (30641)
- merge-overlap (30714)
- notes (v0.9.4)
- opendata (30607)
- pbf (30726)
- pdfimport (30416)
- poly (30495)
- reverter (30521)
- scripting (30700)
- todo (29154)
- turnrestrictions (30651)
- undelete (30416)
- utilsplugin2 (30460)

Last errors/warnings:
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- E: java.lang.NullPointerException

java.lang.NullPointerException
	at javax.swing.SwingUtilities.getWindowAncestor(SwingUtilities.java:135)
	at org.openstreetmap.josm.gui.util.AdvancedKeyPressDetector.isFocusInMainWindow(AdvancedKeyPressDetector.java:197)
	at org.openstreetmap.josm.gui.util.AdvancedKeyPressDetector.access$400(AdvancedKeyPressDetector.java:29)
	at org.openstreetmap.josm.gui.util.AdvancedKeyPressDetector$1.actionPerformed(AdvancedKeyPressDetector.java:90)
	at javax.swing.Timer.fireActionPerformed(Timer.java:312)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (0)

Change History (2)

comment:1 by Don-vip, 10 years ago

Keywords: regression added
Milestone: 14.10
Summary: NPE (don't know when or where)NPE in AdvancedKeyPressDetector.isFocusInMainWindow

Regression of r7633.

comment:2 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7639/josm:

fix #10651 - NPE in AdvancedKeyPressDetector.isFocusInMainWindow

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.