mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
Swallow a possible ArgumentNullException when copying text to the system clipboard
This commit is contained in:
parent
236a952458
commit
e9b956ed71
@ -111,7 +111,14 @@ namespace WinUI
|
||||
|
||||
private void ToolbarItem_NodeIDClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
Clipboard.SetText(nodeId);
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(nodeId);
|
||||
}
|
||||
catch (ArgumentNullException)
|
||||
{
|
||||
// tried to copy a null nodeId
|
||||
}
|
||||
}
|
||||
|
||||
private void ToolbarItem_ShowNetworksClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user