From 9f5810fad6e2c8057491fd68840390dbc5b26f72 Mon Sep 17 00:00:00 2001 From: Gravita Date: Fri, 7 Jan 2022 17:38:42 +0700 Subject: [PATCH] [FIX] Backport 37ec6b525c4d063d244ec3f57ef9fea05277fdcc --- .../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 9338aae9..9a2b911d 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/profiles/ClientProfile.java @@ -401,6 +401,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"); }