We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
master @ 4527744
leshan-server-cf
No response
java.lang.NullPointerException: Cannot invoke "org.eclipse.leshan.server.queue.PresenceServiceImpl.destroy()" because "this.presenceService" is null
Disable queue mode using: builder.disableQueueModeSupport(); create the server and destroy it using using LeshanServer::destroy() method
builder.disableQueueModeSupport();
If you look at: https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/LeshanServer.java#L219 w ith set presence server to null when queuemode is disabled then there is an obvious bug there:
https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/LeshanServer.java#433
The presenseServer must be tested for null
The text was updated successfully, but these errors were encountered:
You point to same URL twice but I guess you mean this is obvious that there is a bug at : https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/LeshanServer.java#L433
Good catch.
I will review your PR and see if we need same kind of fix for branch 1.x.
1.x
Sorry, something went wrong.
GH-1374: fix NPE on server.destroy() when queue mode is disabled
2a2a8a7
c1123be
The fix is integrated in master (#1375) and in 1.x branch (c1123be)
master
Successfully merging a pull request may close this issue.
Version(s)
master @ 4527744
Which components
leshan-server-cf
Tested With
No response
What happened
java.lang.NullPointerException: Cannot invoke "org.eclipse.leshan.server.queue.PresenceServiceImpl.destroy()" because "this.presenceService" is null
How to reproduce
Disable queue mode using:
builder.disableQueueModeSupport();
create the server and destroy it using using LeshanServer::destroy() method
If you look at:
https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/LeshanServer.java#L219
w ith set presence server to null when queuemode is disabled then there is an obvious bug there:
https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/LeshanServer.java#433
The presenseServer must be tested for null
Relevant Output
No response
The text was updated successfully, but these errors were encountered: