Java: Use empty string as default IP rather than null.

Using null can crash the JVM if initialize() is called before setIPAddress.
This commit is contained in:
Peter Johnson
2015-09-11 12:05:09 -07:00
parent 953a2ce807
commit a2ec638db8

View File

@@ -23,7 +23,7 @@ public class NetworkTable implements ITable, IRemote {
private static boolean client = false;
private static boolean running = false;
private static int port = DEFAULT_PORT;
private static String ipAddress = null;
private static String ipAddress = "";
private static String persistentFilename = "networktables.ini";
private synchronized static void checkInit() {