Skip to content
Permalink
Browse files

Fix NRE when clipboard is empty

  • Loading branch information...
lontivero committed Nov 20, 2018
1 parent bd68add commit 34b7bccf8037166ee193af066d6f84a6d724cac0
Showing with 1 addition and 1 deletion.
  1. +1 −1 WalletWasabi.Gui/Behaviors/PasteAddressOnClickBehavior.cs
@@ -65,7 +65,7 @@ public async Task<(bool isAddress, string address)> IsThereABitcoinAddressOnTheC
var clipboard = (IClipboard)AvaloniaLocator.Current.GetService(typeof(IClipboard));
Task<string> clipboardTask = clipboard.GetTextAsync();
string text = await clipboardTask;
if (text.Length > 50) return (false, null);
if (string.IsNullOrEmpty(text) || text.Length > 50) return (false, null);
text = text.Trim();
try
{

0 comments on commit 34b7bcc

Please sign in to comment.
You can’t perform that action at this time.