Skip to content

Commit

Permalink
Merge pull request #17860 from geoand/#17854
Browse files Browse the repository at this point in the history
Fix potential NPE in RESTEasy Classic build time processing
  • Loading branch information
geoand authored Jun 11, 2021
2 parents 4a5417d + b5493ae commit 5f8b782
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 5f8b782

Please sign in to comment.