mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Swallow a possible ArgumentNullException when copying text to the system clipboard
This commit is contained in:
parent
236a952458
commit
e9b956ed71
1 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue