From 6ed2c7118bc58d0344ee68ed8ac662e8384c829c Mon Sep 17 00:00:00 2001 From: Kowalski7 Date: Thu, 10 Oct 2024 20:49:55 +0300 Subject: [PATCH] Fix crash if unable to fetch network interfaces --- My IP Address/LocalAddressFetcher.vb | 2 +- My IP Address/My Project/AssemblyInfo.vb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/My IP Address/LocalAddressFetcher.vb b/My IP Address/LocalAddressFetcher.vb index 11a1edf..bb0237e 100644 --- a/My IP Address/LocalAddressFetcher.vb +++ b/My IP Address/LocalAddressFetcher.vb @@ -27,8 +27,8 @@ Public Class LocalAddressFetcher End Function Public Sub FetchData() - Dim NetworkInterfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces() addresses = New Dictionary(Of String, List(Of List(Of String))) + Dim NetworkInterfaces As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces() For Each netadapter In NetworkInterfaces Dim intproperties As IPInterfaceProperties = netadapter.GetIPProperties() diff --git a/My IP Address/My Project/AssemblyInfo.vb b/My IP Address/My Project/AssemblyInfo.vb index 0df325b..d437d59 100644 --- a/My IP Address/My Project/AssemblyInfo.vb +++ b/My IP Address/My Project/AssemblyInfo.vb @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' by using the '*' as shown below: ' - - + +