Fix for NPE: we should iterate over valid caches.
@@ -197,8 +197,8 @@ public class GridQueryProcessor extends GridProcessorAdapter {
// Schedule queries detail metrics eviction.
qryDetailMetricsEvictTask = ctx.timeout().schedule(new Runnable() {
@Override public void run() {
- for (IgniteCacheProxy cache : ctx.cache().jcaches())
- cache.context().queries().evictDetailMetrics();
+ for (GridCacheContext ctxs : ctx.cache().context().cacheContexts())
+ ctxs.queries().evictDetailMetrics();
}
}, QRY_DETAIL_METRICS_EVICTION_FREQ, QRY_DETAIL_METRICS_EVICTION_FREQ);
}
