Skip to content

Commit d81e2c9

Browse files
vaadin-botArtur-
andauthored
fix: Do not log null if servlet deployer is disabled (#15054) (#15072)
Fixes #15053 Co-authored-by: Artur <artur@vaadin.com>
1 parent 7969dae commit d81e2c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎flow-server/src/main/java/com/vaadin/flow/server/startup/ServletDeployer.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ private void logServletCreation(VaadinServletCreation servletCreation,
217217
if (servletCreation == null || productionMode) {
218218
// the servlet creation is explicitly disabled or production mode
219219
// activated - just info
220-
logger.info(servletCreationMessage);
220+
if (servletCreationMessage != null) {
221+
logger.info(servletCreationMessage);
222+
}
221223
} else if (servletCreation == VaadinServletCreation.NO_CREATION) {
222224
// debug mode and servlet not created for some reason - make it more
223225
// visible with warning

0 commit comments

Comments
 (0)