Modify

Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#1596 closed defect (wontfix)

bei "Datei öffnen" kommt Fehler (immer noch)

Reported by: anonymous Owned by: framm
Priority: minor Milestone:
Component: unspecified Version:
Keywords: Cc:

Description

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 998
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 998
Last Changed Date: 2008-09-20 22:48:57 +0200 (Sat, 20 Sep 2008)

java.lang.NullPointerException

at javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JFileChooser.updateUI(Unknown Source)
at javax.swing.JFileChooser.setup(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at org.openstreetmap.josm.actions.DiskAccessAction.createAndOpenFileChooser(DiskAccessAction.java:26)
at org.openstreetmap.josm.actions.OpenAction.actionPerformed(OpenAction.java:44)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.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 (5)

comment:1 by anonymous, 16 years ago

Duplicate of #1488.

Wenn Du auf Bugreports nicht antwortest, der Fehler nicht reproduzierbar ist und Du die Ratschläge nicht befolgst, die in den Bugreports gegeben werden, kannst Du den Fehler noch tausendmal eintragen, es wird nichts ändern.

Also: Entweder Du versuchst die Ratschläge (z.B. Bug #1488) zu befolgen und dem Fehler auf die Spur zu gehen und meldest die Ergebnisse, oder Du lässt das Eintragen weiterer Duplikate.

Buf will be closed as duplicate in some days.

comment:2 by Henry Loenwind, 16 years ago

I see the same exception on OSX, here it names the file and line number as "ImageIcon.java:161). However, there is no ill effect, and I cannot reproduce it.

The exception is triggered by some event that comes in the the LookAndFeel event loop and is dispatched to the JFileChooser, which then tries to load a native icon. Nothing that could be fixed from our side, I'd say.

in reply to:  2 ; comment:3 by anonymous, 16 years ago

Replying to Henry Loenwind:

I see the same exception on OSX, here it names the file and line number as "ImageIcon.java:161). However, there is no ill effect, and I cannot reproduce it.

The exception is triggered by some event that comes in the the LookAndFeel event loop and is dispatched to the JFileChooser, which then tries to load a native icon. Nothing that could be fixed from our side, I'd say.

Would be nice to know which Icon is actually tried to load.

in reply to:  3 comment:4 by Henry Loenwind, 16 years ago

Priority: majorminor

Replying to anonymous:

Would be nice to know which Icon is actually tried to load.

Not really easily done, unless we had the source code for the LAF. I could patch the LAF I use, but that won't help for the reported exception on Windows---it just won't try to load the same icons.

BTW: I noticed that my LAF does not propagate the exception up to JOSM but just prints it to STDERR and continues. Seems the Windows-LAF is sloppy here.

I'm not sure if we can workaround this. Maybe we could catch the exception and then try to show another file dialog, maybe change the LAF on-the-fly or fallback to the awt dialog. But I'm not sure this is worth it...

comment:5 by anonymous, 16 years ago

Resolution: wontfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
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.