ignite-2.0 - Fixed NPE
@@ -1272,6 +1272,7 @@ public class GridQueryProcessor extends GridProcessorAdapter {
private void registerCache0(String space, GridCacheContext<?, ?> cctx, Collection<QueryTypeCandidate> cands)
throws IgniteCheckedException {
synchronized (stateMux) {
+ if (idx != null)
idx.registerCache(space, cctx, cctx.config());
try {
@@ -1301,6 +1302,7 @@ public class GridQueryProcessor extends GridProcessorAdapter {
}
}
+ if (idx != null)
idx.registerType(space, desc);
}
