Skip to content

Commit

Permalink
Undertow: ignore missing servlet class in web.xml
Browse files Browse the repository at this point in the history
Avoids writing a null bean name to the bean archive, which causes a
later build failure.

Fixes quarkusio#43825
  • Loading branch information
rodcheater committed Oct 24, 2024
1 parent e81fa0c commit eb01531
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ WebMetadataBuildItem createWebMetadata(ApplicationArchivesBuildItem applicationA
}
if (metadata.getServlets() != null) {
for (ServletMetaData i : metadata.getServlets()) {
additionalBeans.add(i.getServletClass());
String servletClass = i.getServletClass();
if (servletClass != null) {
additionalBeans.add(servletClass);
}
}
}
if (metadata.getFilters() != null) {
Expand Down

0 comments on commit eb01531

Please sign in to comment.