diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-19 12:16:11 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-19 16:58:44 +0200 |
commit | 129c13bae4afcc3bb924841a6431e9bf7ebd4d4a (patch) | |
tree | 53355e3e72f4a416a0e06d4b5bbb6f2c5b5f1ba1 /server/sonar-process/src | |
parent | f0f885748a2c1442690970de335c64fdd30791b4 (diff) | |
download | sonarqube-129c13bae4afcc3bb924841a6431e9bf7ebd4d4a.tar.gz sonarqube-129c13bae4afcc3bb924841a6431e9bf7ebd4d4a.zip |
Do not crash with technical errors when cluster is enabled
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java b/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java index 686aed8fee5..706b4d22d22 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java +++ b/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java @@ -42,6 +42,10 @@ public class SharedHealthStateImpl implements SharedHealthState { this.hzMember = hzMember; } + public SharedHealthStateImpl() { + this(null); + } + @Override public void writeMine(NodeHealth nodeHealth) { requireNonNull(nodeHealth, "nodeHealth can't be null"); |