Skip to content

protect against activeListeners NPE #10114

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

Merged
merged 1 commit into from
Nov 14, 2023
Merged

protect against activeListeners NPE #10114

merged 1 commit into from
Nov 14, 2023

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented Nov 14, 2023

see: https://ge.micronaut.io/s/bixblaqnbdlek/tests/task/:test-suite-netty-ssl-graalvm:test/details/example.micronaut.HelloControllerTest?top-execution=1

java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "this.activeListeners" is null
	at io.micronaut.http.server.netty.NettyHttpServer.stopInternal(NettyHttpServer.java:644)
	at io.micronaut.http.server.netty.NettyHttpServer.bind(NettyHttpServer.java:576)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:287)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:104)
	at io.micronaut.test.extensions.AbstractMicronautExtension.beforeClass(AbstractMicronautExtension.java:331)
	at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.befo

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
see: https://ge.micronaut.io/s/bixblaqnbdlek/tests/task/:test-suite-netty-ssl-graalvm:test/details/example.micronaut.HelloControllerTest?top-execution=1

java.lang.NullPointerException: Cannot invoke "java.util.List.iterator()" because "this.activeListeners" is null
	at io.micronaut.http.server.netty.NettyHttpServer.stopInternal(NettyHttpServer.java:644)
	at io.micronaut.http.server.netty.NettyHttpServer.bind(NettyHttpServer.java:576)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:287)
	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:104)
	at io.micronaut.test.extensions.AbstractMicronautExtension.beforeClass(AbstractMicronautExtension.java:331)
	at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.befo
@sdelamo sdelamo added the type: bug Something isn't working label Nov 14, 2023
@sdelamo sdelamo added this to the 4.2.1 milestone Nov 14, 2023
@sdelamo sdelamo requested a review from yawkat November 14, 2023 06:15
@sdelamo sdelamo changed the title protect agains activeListener NPE protect against activeListeners NPE Nov 14, 2023
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell D 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

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.

None yet

2 participants