Changeset 14504 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-12-03T20:08:05+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #17065 - spurious UnsupportedFlavorException displayed in console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r14500 r14504  
    10641064    protected static void removeClipboardDataFor(OsmDataLayer osm) {
    10651065        Transferable clipboardContents = ClipboardUtils.getClipboardContent();
    1066         if (clipboardContents != null) {
     1066        if (clipboardContents != null && clipboardContents.isDataFlavorSupported(OsmLayerTransferData.OSM_FLAVOR)) {
    10671067            try {
    10681068                Object o = clipboardContents.getTransferData(OsmLayerTransferData.OSM_FLAVOR);
Note: See TracChangeset for help on using the changeset viewer.