You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.NullPointerException: Cannot invoke "io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is null
at io.swagger.v3.parser.processors.SchemaProcessor.processArraySchema(SchemaProcessor.java:218)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:69)
at io.swagger.v3.parser.processors.SchemaProcessor.processPropertySchema(SchemaProcessor.java:139)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:76)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchema(SchemaProcessor.java:61)
at io.swagger.v3.parser.processors.ComponentsProcessor.processSchemas(ComponentsProcessor.java:231)
at io.swagger.v3.parser.processors.ComponentsProcessor.processComponents(ComponentsProcessor.java:145)
at io.swagger.v3.parser.OpenAPIResolver.resolve(OpenAPIResolver.java:73)
...
The above is from a log and I don't have a easy way to create a reproducer. You'll notice though that most call sites of ArraySchema.getItems() in this repo do check for a null result value, but not all call sites.
The text was updated successfully, but these errors were encountered:
garydgregory
added a commit
to garydgregory/swagger-parser
that referenced
this issue
Jan 23, 2024
"io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is
null swagger-api#2048
PR for:
```
Caused by: java.lang.NullPointerException: Cannot invoke
"io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is
null
at io.swagger.v3.parser.processors.SchemaProcessor.processArraySchema(SchemaProcessor.java:218)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:69)
at io.swagger.v3.parser.processors.SchemaProcessor.processPropertySchema(SchemaProcessor.java:139)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:76)
at io.swagger.v3.parser.processors.SchemaProcessor.processSchema(SchemaProcessor.java:61)
at io.swagger.v3.parser.processors.ComponentsProcessor.processSchemas(ComponentsProcessor.java:231)
at io.swagger.v3.parser.processors.ComponentsProcessor.processComponents(ComponentsProcessor.java:145)
at io.swagger.v3.parser.OpenAPIResolver.resolve(OpenAPIResolver.java:73)
...
```
The above is from a log and I don't have a easy way to create a
reproducer. You'll notice though that most call sites of
`ArraySchema.getItems()` in this repo do check for a null result value,
but not _all_ call sites.
garydgregory
changed the title
NullPointerException: Cannot invoke "io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is null
NullPointerException in SchemaProcessor.processArraySchema(): "io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is null
Jan 23, 2024
Issue: #2048
PR: #2049
The above is from a log and I don't have a easy way to create a reproducer. You'll notice though that most call sites of
ArraySchema.getItems()
in this repo do check for a null result value, but not all call sites.The text was updated successfully, but these errors were encountered: