Skip to content
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

ISPN-13479 NPE in RemoteStore when not properly initialized #9662

Merged
merged 1 commit into from Dec 9, 2021

Conversation

diegolovison
Copy link
Contributor

return remoteCache.ping()
.handle((v, t) -> t == null && v.isSuccess());
} else {
return CompletableFuture.completedFuture(false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return CompletableFuture.completedFuture(false);
return CompletableFutures.completedFalse();

if (remoteCache != null) {
return remoteCache.clearAsync();
} else {
return CompletableFuture.completedFuture(null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return CompletableFuture.completedFuture(null);
return CompletableFutures.completedNull();

@diegolovison
Copy link
Contributor Author

Done

@pruivo pruivo merged commit fcdaac2 into infinispan:main Dec 9, 2021
@pruivo
Copy link
Member

pruivo commented Dec 9, 2021

merged! thanks @diegolovison !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants