Opened 11 years ago

Closed 11 years ago

#5707 closed defect (needinfo)

Going back from FullScreen triggers NPE

Reported by: avarab@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: template_report Cc:


What steps will reproduce the problem?

  1. Go to Full Screen under Debian / GNOME / Metacity
  2. Try to go back
  3. Get this NPE

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if

This is code that was changed in #5470. This worked before when I originally wrote this, so someone probably wasn't careful that "frame" wasn't NULL.

Build-Date: 2010-12-06 01:03:08
Revision: UNKNOWN
Is-Local-Build: true

Identification: JOSM/1.5 (UNKNOWN en)
Memory Usage: 15 MB / 989 MB (5 MB allocated, but free)
Java version: 1.6.0_22, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Linux

	at sun.awt.X11GraphicsDevice.setDisplayMode(
	at sun.awt.X11GraphicsDevice.setFullScreenWindow(
	at java.awt.Window$
	at java.awt.Window.doDispose(
	at java.awt.Window.dispose(
	at org.openstreetmap.josm.actions.FullscreenToggleAction.toggleSelectedState(
	at org.openstreetmap.josm.actions.FullscreenToggleAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.JToggleButton$ToggleButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by bastiK

Hi avar!

Sorry for messing up your work. ;)

Full screen mode appeared the same way as maximized window on my system (Ubuntu/gnome) and Christian's (Win) so we tried to improve this.

Does it help to set draw.fullscreen.exclusive-mode=false?

Do you already have an idea for a fix?

comment:2 Changed 11 years ago by bastiK

Resolution: needinfo
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.