SingleEntryCompositeIndexer: fix NPE.

GitOrigin-RevId: 1822d6f46803c278a6069851ef16226c18ccf4ed
This commit is contained in:
Sergey Patrikeev
2019-12-27 14:07:55 +00:00
committed by intellij-monorepo-bot
parent b06b11b051
commit 775693f56c
@@ -20,7 +20,8 @@ public abstract class SingleEntryCompositeIndexer<V, SubIndexerType, SubIndexerV
@Nullable
@Override
protected V computeValue(@NotNull FileContent inputData) {
return computeValue(inputData, calculateSubIndexer(inputData));
SubIndexerType subIndexerType = calculateSubIndexer(inputData);
return subIndexerType != null ? computeValue(inputData, subIndexerType) : null;
}
@Nullable