Skip to content

Commit

Permalink
Fix potential NPE in RESTEasy Classic build time processing
Browse files Browse the repository at this point in the history
Fixes: quarkusio#17854
(cherry picked from commit b5493ae)
  • Loading branch information
geoand authored and gsmet committed Jun 21, 2021
1 parent 6edf808 commit a412721
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void setUpDenyAllJaxRs(CombinedIndexBuildItem index,
JaxRsSecurityConfig config,
ResteasyDeploymentBuildItem resteasyDeployment,
BuildProducer<AdditionalSecuredClassesBuildItem> additionalSecuredClasses) {
if (config.denyJaxRs) {
if ((config.denyJaxRs) && (resteasyDeployment != null)) {
final List<ClassInfo> classes = new ArrayList<>();

List<String> resourceClasses = resteasyDeployment.getDeployment().getScannedResourceClasses();
Expand Down

0 comments on commit a412721

Please sign in to comment.