From 725eb8d9dcced37e669e29c33bfea2b9d9c3660f Mon Sep 17 00:00:00 2001 From: dm94 Date: Wed, 30 Oct 2024 21:03:43 +0100 Subject: [PATCH] fix: WeeklySchedule: Fixed null exception --- src/main/java/com/deeme/tasks/WeeklySchedule.java | 2 +- src/main/resources/plugin.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/deeme/tasks/WeeklySchedule.java b/src/main/java/com/deeme/tasks/WeeklySchedule.java index b07444fb..1c58e0a7 100644 --- a/src/main/java/com/deeme/tasks/WeeklySchedule.java +++ b/src/main/java/com/deeme/tasks/WeeklySchedule.java @@ -239,7 +239,7 @@ private void setProfile() { } private boolean isRunningPalladiumModule() { - return botApi.getModule().getClass() == PalladiumHangar.class; + return botApi.getModule() != null && botApi.getModule().getClass() == PalladiumHangar.class; } private void tryUpdateHangarList() { diff --git a/src/main/resources/plugin.json b/src/main/resources/plugin.json index 5d62e2a7..ebecd004 100644 --- a/src/main/resources/plugin.json +++ b/src/main/resources/plugin.json @@ -1,7 +1,7 @@ { "name": "DmPlugin", "author": "Dm94Dani", - "version": "2.3.4 beta 6", + "version": "2.3.4 beta 7", "minVersion": "1.131", "supportedVersion": "1.131.2", "basePackage": "com.deeme",