diff --git a/src/main/base/org/bdware/sc/encrypt/HardwareInfo.java b/src/main/base/org/bdware/sc/encrypt/HardwareInfo.java index f98aa88..b43a80b 100644 --- a/src/main/base/org/bdware/sc/encrypt/HardwareInfo.java +++ b/src/main/base/org/bdware/sc/encrypt/HardwareInfo.java @@ -4,6 +4,7 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; +import java.util.UUID; public class HardwareInfo { public static OSType type = getOSType(); @@ -106,6 +107,9 @@ public class HardwareInfo { e.printStackTrace(); } } + if (result.toString().trim().equals("")) { + return UUID.randomUUID().toString(); + } return result.toString().trim(); }