Skip to content

add null check for environment#12380

Merged
graemerocher merged 1 commit into
4.10.xfrom
fix-bean-tracing-null-issue
Feb 5, 2026
Merged

add null check for environment#12380
graemerocher merged 1 commit into
4.10.xfrom
fix-bean-tracing-null-issue

Conversation

@graemerocher

@graemerocher graemerocher commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Fixes:

java.lang.NullPointerException: Cannot invoke "io.micronaut.context.env.Environment.getPropertySources()" because "environment" is null
at io.micronaut.context.ConsoleBeanResolutionTracer.traceInitialConfiguration(ConsoleBeanResolutionTracer.java:58)
at io.micronaut.context.DefaultApplicationContext.lambda$configureContextInternal$1(DefaultApplicationContext.java:148)
at java.base/java.util.Optional.ifPresent(Optional.java:178)

@graemerocher graemerocher added the type: bug Something isn't working label Feb 5, 2026
@graemerocher graemerocher force-pushed the fix-bean-tracing-null-issue branch from 02c0eb4 to e992eeb Compare February 5, 2026 14:34
@graemerocher graemerocher merged commit 5079647 into 4.10.x Feb 5, 2026
19 of 20 checks passed
@graemerocher graemerocher deleted the fix-bean-tracing-null-issue branch February 5, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants