diff --git a/src/main/java/cloud/cleo/chimesma/cdk/InfrastructureApp.java b/src/main/java/cloud/cleo/chimesma/cdk/InfrastructureApp.java index 228ab58..8d5a55b 100644 --- a/src/main/java/cloud/cleo/chimesma/cdk/InfrastructureApp.java +++ b/src/main/java/cloud/cleo/chimesma/cdk/InfrastructureApp.java @@ -46,7 +46,7 @@ static Environment makeEnv(String accountId, String region) { static String getParamOrDefault(App app, String param, String defaultValue) { final var val = (String) app.getNode().tryGetContext(param); - return val.isBlank() ? defaultValue : val; + return val == null || val.isBlank() ? defaultValue : val; } static void requireNonEmpty(String string, String message) {