Browse Source

Replace null with an empty string

NX 7 years ago
parent
commit
d019b6e881
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Managed/ENet.cs

+ 1 - 1
Source/Managed/ENet.cs

@@ -141,7 +141,7 @@ namespace ENet {
 			StringBuilder hostName = new StringBuilder(1024);
 			StringBuilder hostName = new StringBuilder(1024);
 
 
 			if (Native.enet_address_get_host(nativeAddress, hostName, (IntPtr)hostName.Capacity) != 0)
 			if (Native.enet_address_get_host(nativeAddress, hostName, (IntPtr)hostName.Capacity) != 0)
-				return null;
+				return String.Empty;
 
 
 			return hostName.ToString();
 			return hostName.ToString();
 		}
 		}