-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NPE when QUARKUS_INIT_AND_EXIT
is used
#41117
Conversation
geoand
commented
Jun 11, 2024
•
edited
Loading
edited
- Fixes: Initialization Tasks failing #41113
@@ -28,6 +28,9 @@ public void setListeners(List<ShutdownListener> listeners, boolean delayEnabled) | |||
} | |||
|
|||
public static void runShutdown() { | |||
if (shutdownListeners == null) { // when QUARKUS_INIT_AND_EXIT is used, ShutdownRecorder#setListeners has not been called |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm. In this case, we are sure that we don't want to run any of the shutdown listeners? None will have been registered and needed at this phase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's how it's always has been.
Status for workflow
|
This one is actually not a problem in 3.8, the null test is still here. |