|
@@ -87,13 +87,15 @@ public final class InputTextFramePasteAction extends AbstractAction {
|
87
|
87
|
|
88
|
88
|
@Override
|
89
|
89
|
public void actionPerformed(final ActionEvent e) {
|
|
90
|
+ //wrap in try and catch for when clipboard doesn't exist
|
|
91
|
+ //only seems to happen on linux and I couldnt see an obvious JVM bug
|
90
|
92
|
try {
|
91
|
93
|
if (!clipboard.isDataFlavorAvailable(DataFlavor.stringFlavor)) {
|
92
|
94
|
return;
|
93
|
95
|
}
|
94
|
96
|
} catch (final IllegalStateException ex) {
|
95
|
97
|
eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, ex,
|
96
|
|
- "Unable to past from clipboard.", ""));
|
|
98
|
+ "Unable to paste from clipboard.", ""));
|
97
|
99
|
return;
|
98
|
100
|
}
|
99
|
101
|
|