hotfix NPE
This commit is contained in:
parent
8b1e76b526
commit
826014d618
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user