Changeset 11678 in josm for trunk/src/org
- Timestamp:
- 2017-03-05T00:51:46+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/PasteMembersAction.java
r11554 r11678 5 5 import java.awt.datatransfer.FlavorListener; 6 6 import java.awt.event.ActionEvent; 7 import java.util.Optional; 7 8 8 9 import javax.swing.TransferHandler.TransferSupport; … … 42 43 43 44 private TransferSupport getSupport() { 44 return new TransferSupport(memberTable, ClipboardUtils.getClipboardContent()); 45 return new TransferSupport(memberTable, Optional.ofNullable(ClipboardUtils.getClipboardContent()) 46 .orElseThrow(() -> new IllegalStateException("Failed to retrieve clipboard content"))); 45 47 } 46 48
Note:
See TracChangeset
for help on using the changeset viewer.