Skip to content

Commit

Permalink
Fixed an issue with empty URL in Traceroute page
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Dec 30, 2023
1 parent ad81992 commit 2e19062
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions InternetTest/InternetTest/Pages/TraceroutePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ private async void TraceBtn_Click(object sender, RoutedEventArgs e)
// Increment the interaction count of the ActionInfo in Global.SynethiaConfig
Global.SynethiaConfig.ActionsInfo.First(a => a.Name == "Traceroute.Execute").UsageCount++;

if (string.IsNullOrEmpty(AddressTxt.Text) || string.IsNullOrWhiteSpace(AddressTxt.Text))
{
MessageBox.Show(Properties.Resources.InvalidURLMsg, Properties.Resources.GetDnsInfo, MessageBoxButton.OK, MessageBoxImage.Error);
return;
}

// Show the waiting screen
TraceBtn.IsEnabled = false;
StatusPanel.Visibility = Visibility.Collapsed;
Expand Down

0 comments on commit 2e19062

Please sign in to comment.