mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
null ref check
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user