From 2cd4ca127a527cbdff8c26fa1ab9d55ba0007ede Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Fri, 16 Feb 2024 07:58:51 +0100 Subject: Fixed an NPE in ReflectionUtils.shPackageName. #1012 --- src/main/java/at/hannibal2/skyhanni/utils/ReflectionUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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] -- cgit