1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 15:53:44 +00:00

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;
} }