aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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]