From fb0392ef3c01cf2035126878f445a21e5a3d9776 Mon Sep 17 00:00:00 2001 From: Josiah Noel <32279667+SentryMan@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:04:31 -0500 Subject: [PATCH] [Avaje Inject Module] Fix property plugin --- .../main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/jooby-avaje-inject/src/main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java b/modules/jooby-avaje-inject/src/main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java index 54b16d28a5..e860473a0f 100644 --- a/modules/jooby-avaje-inject/src/main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java +++ b/modules/jooby-avaje-inject/src/main/java/io/jooby/avaje/inject/JoobyPropertyPlugin.java @@ -22,8 +22,8 @@ public JoobyPropertyPlugin(Config config) { @Override public Optional get(String property) { return config.hasPath(property) - ? Optional.empty() - : Optional.ofNullable(config.getString(property)); + ? Optional.of(config.getString(property)) + : Optional.empty(); } @Override