aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-02-16 07:58:51 +0100
committerGitHub <noreply@github.com>2024-02-16 07:58:51 +0100
commit2cd4ca127a527cbdff8c26fa1ab9d55ba0007ede (patch)
tree076160fd952a41c52533ee35f25b2b2a3ef5ca48 /src/main
parent985cc0ee938f2798539221684025dc10bd9bdfbf (diff)
downloadskyhanni-2cd4ca127a527cbdff8c26fa1ab9d55ba0007ede.tar.gz
skyhanni-2cd4ca127a527cbdff8c26fa1ab9d55ba0007ede.tar.bz2
skyhanni-2cd4ca127a527cbdff8c26fa1ab9d55ba0007ede.zip
Fixed an NPE in ReflectionUtils.shPackageName. #1012
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt
index 5ef72ddd7..d8ebbaf68 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt
@@ -74,7 +74,7 @@ object ReflectionUtils {
val Class<*>.shPackageName
get() =
- canonicalName.substringBeforeLast('.')
+ canonicalName?.substringBeforeLast('.')
fun Class<*>.getModContainer(): ModContainer? {
return packageLookup[shPackageName]