소스 검색

Fix reindex NPE when http is disabled

Ryan Ernst 9 년 전
부모
커밋
4ea5f51a9c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/reindex/src/main/java/org/elasticsearch/index/reindex/TransportReindexAction.java

+ 1 - 1
modules/reindex/src/main/java/org/elasticsearch/index/reindex/TransportReindexAction.java

@@ -109,7 +109,7 @@ public class TransportReindexAction extends HandledTransportAction<ReindexReques
 
     private void checkRemoteWhitelist(RemoteInfo remoteInfo) {
         TransportAddress publishAddress = null;
-        HttpInfo httpInfo = httpServer.info();
+        HttpInfo httpInfo = httpServer == null ? null : httpServer.info();
         if (httpInfo != null && httpInfo.getAddress() != null) {
             publishAddress = httpInfo.getAddress().publishAddress();
         }