mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user