Skip to content

fix: re-add a null guard for setDefaultSchema#5089

Merged
ewaostrowska merged 2 commits intoswagger-api:masterfrom
Mattias-Sehlstedt:default-value-null-guard
Apr 3, 2026
Merged

fix: re-add a null guard for setDefaultSchema#5089
ewaostrowska merged 2 commits intoswagger-api:masterfrom
Mattias-Sehlstedt:default-value-null-guard

Conversation

@Mattias-Sehlstedt
Copy link
Copy Markdown
Contributor

@Mattias-Sehlstedt Mattias-Sehlstedt commented Mar 13, 2026

Pull Request

Thank you for contributing to swagger-core!

Please fill out the following information to help us review your PR efficiently.


Description

Re-adds so that there is a null guard before attempting to set the default value.

Fixes: #5088

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

Screenshots / Additional Context

@ewaostrowska ewaostrowska force-pushed the default-value-null-guard branch from e4e887f to 4934343 Compare April 3, 2026 10:54
@ewaostrowska
Copy link
Copy Markdown
Contributor

@Mattias-Sehlstedt thank you a lot for finding the exact leakage site and providing a fix!

@ewaostrowska ewaostrowska merged commit ca8b4b5 into swagger-api:master Apr 3, 2026
7 checks passed
@Mattias-Sehlstedt Mattias-Sehlstedt deleted the default-value-null-guard branch April 3, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Missing null check in AnnotationsUtils.setDefaultSchema()

2 participants