Commit 38297a84 by apoorvnaik Committed by Madhan Neethiraj

ATLAS-1997: fix to avoid NPE while getting vertex_indices

parent eb5d6fcd
......@@ -263,10 +263,11 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
}
if (management != null) {
recomputeIndexedKeys = false;
AtlasGraphIndex vertexIndex = management.getGraphIndex(Constants.VERTEX_INDEX);
if (vertexIndex != null) {
recomputeIndexedKeys = false;
Set<String> indexKeys = new HashSet<>();
for (AtlasPropertyKey fieldKey : vertexIndex.getFieldKeys()) {
......@@ -276,6 +277,7 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
vertexIndexKeys = indexKeys;
}
}
}
return vertexIndexKeys;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment