#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 , 17 years ago
follow-up: 3 comment:2 by , 17 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.
follow-up: 4 comment:3 by , 17 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.
comment:4 by , 17 years ago
Priority: | major → minor |
---|
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 , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.