Changeset 19678 in josm


Ignore:
Timestamp:
2026-11-04T14:01:56+01:00 (12 hours ago)
Author:
stoecker
Message:

see #21059 - catch two more possible exceptions

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/ClipboardUtils.java

    r19535 r19678  
    117117                    Thread.currentThread().interrupt();
    118118                }
    119             } catch (NullPointerException | NoClassDefFoundError e) {
     119            } catch (NullPointerException | NoClassDefFoundError | IllegalAccessError e) {
    120120                // JDK-6322854: On Linux/X11, NPE can happen for unknown reasons, on all versions of Java
    121121                // See #24642: Access can fail due to issues in ImageIO when an image is in clipboard
  • trunk/src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java

    r19535 r19678  
    129129                    try {
    130130                        pasteAction.actionPerformed(e);
    131                     } catch (NullPointerException npe) {
     131                    } catch (NullPointerException | NoClassDefFoundError npe) {
    132132                        Logging.log(Logging.LEVEL_ERROR, "NullPointerException occurred because of JDK bug 6322854. "
    133133                                +"Copy/Paste operation has not been performed. Please complain to Oracle: "+
Note: See TracChangeset for help on using the changeset viewer.