From e2653a8cf4a1d727c5a0e0406092002e68634052 Mon Sep 17 00:00:00 2001 From: jaehong choi Date: Fri, 27 May 2016 01:55:33 +0900 Subject: [PATCH] handle a NPE in LookupCoordinatorManager.start() (#3026) --- .../druid/server/lookup/cache/LookupCoordinatorManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/main/java/io/druid/server/lookup/cache/LookupCoordinatorManager.java b/server/src/main/java/io/druid/server/lookup/cache/LookupCoordinatorManager.java index 1258975f35c..f9aaee2f64f 100644 --- a/server/src/main/java/io/druid/server/lookup/cache/LookupCoordinatorManager.java +++ b/server/src/main/java/io/druid/server/lookup/cache/LookupCoordinatorManager.java @@ -551,6 +551,10 @@ public class LookupCoordinatorManager LOG.info("Not started. Returning"); return; } + if (allLookupTiers == null) { + LOG.info("Not updating lookups because no data exists"); + return; + } for (final String tier : allLookupTiers.keySet()) { try { final Map> allLookups = allLookupTiers.get(tier);