apache / apache/servicecomb-java-chassis
[BUG] - result may be null, causing NPE
Open
question
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
### 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_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.