Handle missing or empty PC name

This commit is contained in:
Cameron Gutman 2017-12-27 19:46:54 -08:00
parent 756ceaff1a
commit 4b9ee92434

View File

@ -208,6 +208,10 @@ public class NvHTTP {
String serverInfo = getServerInfo();
details.name = getXmlString(serverInfo, "hostname");
if (details.name == null || details.name.isEmpty()) {
details.name = "UNKNOWN";
}
details.uuid = UUID.fromString(getXmlString(serverInfo, "uniqueid"));
details.macAddress = getXmlString(serverInfo, "mac");