hotfix NPE

This commit is contained in:
Kilian Schuettler 2024-08-27 14:39:20 +02:00
parent 8b1e76b526
commit 826014d618

View File

@ -30,7 +30,7 @@ public class LifecycleAspect {
public Object checkLifecycle(ProceedingJoinPoint joinPoint) throws Throwable { public Object checkLifecycle(ProceedingJoinPoint joinPoint) throws Throwable {
String targetClassName = joinPoint.getTarget().getClass().getPackageName(); String targetClassName = joinPoint.getTarget().getClass().getPackageName();
if (!targetClassName.startsWith(lifecycleProperties.getBasePackage())) { if (targetClassName == null || lifecycleProperties.getBasePackage() == null || !targetClassName.startsWith(lifecycleProperties.getBasePackage())) {
return joinPoint.proceed(); return joinPoint.proceed();
} }