null ref check

This commit is contained in:
Kyle Spearrin 2018-10-08 15:04:18 -04:00
parent 726db336a8
commit 144d932591

View file

@ -58,6 +58,10 @@ namespace Bit.iOS.Services
public void CopyToClipboard(string text) public void CopyToClipboard(string text)
{ {
if(text == null)
{
return;
}
UIPasteboard clipboard = UIPasteboard.General; UIPasteboard clipboard = UIPasteboard.General;
clipboard.String = text; clipboard.String = text;
} }