Changeset 19530 in josm for trunk/src


Ignore:
Timestamp:
2026-02-16T09:02:31+01:00 (30 hours ago)
Author:
stoecker
Message:

do not fail when image in Clipboard causes exception, see #24642

File:
1 edited

Legend:

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

    r19519 r19530  
    117117                    Thread.currentThread().interrupt();
    118118                }
    119             } catch (NullPointerException e) { // NOPMD
     119            } catch (NullPointerException|NoClassDefFoundError e) { // NOPMD
    120120                // JDK-6322854: On Linux/X11, NPE can happen for unknown reasons, on all versions of Java
     121                // See #24642: Access can fail due to issues in ImageIO when an image is in clipboard
    121122                Logging.error(e);
    122123            }
Note: See TracChangeset for help on using the changeset viewer.