You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "liljdd (via GitHub)" <gi...@apache.org> on 2025/04/01 04:10:57 UTC

[I] [BUG] - result may be null, causing NPE [servicecomb-java-chassis]

liljdd opened a new issue, #4756:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4756

   ### Steps to Reproduce
   
   1. env:jdk21+swagger3
   2. a java bean has "Exception" property,eg.@Data
   public class Blog {
       private Exception exception;
   }
   3. the bean to swagger's Schema object
   4. runtime errors:java.lang.NullPointerException: Cannot invoke "io.swagger.v3.oas.models.media.Schema.get$ref()" because "result" is null
   
   ### Expected Behavior
   
   Rectify the NPE.
   
   ### Servicecomb Version
   
   3.2.0
   
   ### Additional Context
   
   _No response_


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - result may be null, causing NPE [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4756:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4756#issuecomment-2771930318

   `Exception` 应该无法使用 swagger 序列化表示吧? 你期望他的swagger长什么样了?


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org