Merge branch 'hotfix' into 'main'

hotfix NPE

See merge request fforesight/lifecycle-commons!1
This commit is contained in:
Kilian Schüttler 2024-08-27 14:41:10 +02:00
commit 2137f4f073

View File

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