Calling methods which use cluster
under the hood can cause NullPointerExecption
#1491
Milestone
cluster
under the hood can cause NullPointerExecption
#1491
Versions used
Akka version:
latest
(code on master)Description
Consider the following code:
Running this suite will result in the following exception:
Of course, the issue here is that I'm trying to get information regarding the cluster when before I even started it.
Expected Behavior
Please describe the expected behavior of the issue, starting from the first action.
A proper exception, saying the cluster hasn't been started, will be thrown.
Actual Behavior
The method returns a
NullPointerExecption
Suggested Solution
Check by default if the cluster has been started, like other methods do:
The text was updated successfully, but these errors were encountered: