From 37ec6b525c4d063d244ec3f57ef9fea05277fdcc Mon Sep 17 00:00:00 2001 From: Gravita Date: Thu, 29 Apr 2021 23:35:56 +0700 Subject: [PATCH] [FIX] Profile UUID null error --- .../main/java/pro/gravit/launcher/profiles/ClientProfile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java index 3e317d0c..2c1dbdb7 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java @@ -399,6 +399,9 @@ public void verify() { // Client launcher VerifyHelper.verify(getTitle(), VerifyHelper.NOT_EMPTY, "Main class can't be empty"); + if(getUUID() == null) { + throw new IllegalArgumentException("Profile UUID can't be null"); + } for (String s : update) { if (s == null) throw new IllegalArgumentException("Found null entry in update"); }