From cfaaeebd4a6b8ff72c93c77fd8c7e18ed2fbb79b Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 26 Aug 2023 23:33:35 +0100 Subject: [PATCH] test --- src/main/java/stirling/software/SPDF/config/AppConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/config/AppConfig.java b/src/main/java/stirling/software/SPDF/config/AppConfig.java index 42b3f49b..9715128e 100644 --- a/src/main/java/stirling/software/SPDF/config/AppConfig.java +++ b/src/main/java/stirling/software/SPDF/config/AppConfig.java @@ -24,7 +24,8 @@ public class AppConfig { @Bean(name = "appName") public String appName() { - return applicationProperties.getUi().getHomeName(); + String homeTitle = applicationProperties.getUi().getHomeName(); + return (homeTitle != null) ? homeTitle : "Stirling PDF"; } @Bean(name = "appVersion") @@ -42,7 +43,7 @@ public class AppConfig { @Bean(name = "navBarText") public String navBarText() { String defaultNavBar = applicationProperties.getUi().getNavbarName() != null ? applicationProperties.getUi().getNavbarName() : applicationProperties.getUi().getHomeName(); - return defaultNavBar; + return (defaultNavBar != null) ? defaultNavBar : "Stirling PDF"; } @Bean(name = "rateLimit")