How can you get null metricRawMap here ? Did you mean `metricIdRawMap.isEmpty()` ?