From 9f2c9bb58908e280e4dfdaae4c6609c8255708ae Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 22 Nov 2021 15:00:09 +0700 Subject: [PATCH] Update ClientPermissions.java --- .../src/main/java/pro/gravit/launcher/ClientPermissions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/ClientPermissions.java b/LauncherAPI/src/main/java/pro/gravit/launcher/ClientPermissions.java index 96938403..d590ffb6 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/ClientPermissions.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/ClientPermissions.java @@ -56,6 +56,10 @@ public synchronized void compile() { if (available != null) { return; } + if (perms == null) { + perms = new ArrayList<>(0); + + } available = new ArrayList<>(perms.size()); for (String a : perms) { available.add(new PermissionPattern(a));