funky-eyes commented on code in PR #8106:
URL: https://github.com/apache/incubator-seata/pull/8106#discussion_r3302983337


##########
spring/seata-spring/src/main/java/org/apache/seata/spring/annotation/GlobalTransactionScanner.java:
##########
@@ -518,7 +518,7 @@ private MethodDesc makeMethodDesc(GlobalTransactional anno, 
Method method) {
     @Override
     protected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String 
beanName, TargetSource customTargetSource)
             throws BeansException {
-        return new Object[] {interceptor};
+        return interceptor == null ? DO_NOT_PROXY : new Object[] {interceptor};

Review Comment:
   > Yes. This seems to occur during commands like: mvn clean package -Pnative 
or mvn spring-boot:process-aot
   
   Got it, thanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to