From 1f0d02d7b2023e358a5947b04523fae35b8b5f63 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 28 Aug 2014 09:23:21 +0200 Subject: [PATCH] SONAR-4898 fix NPE on termination of ES --- .../src/main/java/org/sonar/search/SearchServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java index dafb21428d9..5f38b364103 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java @@ -167,7 +167,7 @@ public class SearchServer extends MonitoredProcess { .get(); if (isBlocking) { - while (!node.isClosed()) { + while (node != null && !node.isClosed()) { try { Thread.sleep(100); } catch (InterruptedException e) { -- 2.39.5