Skip to content

NPE thrown in AnnotationUtils due to "API backwards compatibility fix" introduced in 2.2.21 #4645

@joloto

Description

@joloto

Changes introduced for this issue #4196 introduce NullPointerException due to 'API backwards compatibility' fix in which null is passed to the modified method.

The changes were introduced in this PR: #4608

image

This results in NPE on line 1387 of AnnotationUtils due to null components:
image

https://github.com/swagger-api/swagger-core/blob/d5c37284f5dbb9b6e65858c25d55c1aa2969f8a2/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java#L1387C58-L1387C58

(I experienced this issue when upgrading springdoc-openapi from 2.4.0 -> v2.5.0, which includes upgrade to swagger-core 2.2.21, which it seems is in fact not backwards compatible!)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions