We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f583497 + f85ab9a commit 15e564fCopy full SHA for 15e564f
ICSharpCode.AvalonEdit/Editing/EditingCommandHandler.cs
@@ -482,6 +482,9 @@ internal static string GetTextToPaste(DataObjectPastingEventArgs pastingEventArg
482
} catch (OutOfMemoryException) {
483
// may happen when trying to paste a huge string
484
return null;
485
+ } catch (COMException) {
486
+ // may happen with incorrect data => Data on clipboard is invalid (Exception from HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA))
487
+ return null;
488
}
489
490
#endregion
0 commit comments