Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-alpha2
-
None
-
Reviewed
Description
Not all callers of INodeFile#getBlocks check for null. e.g.
public final QuotaCounts storagespaceConsumedContiguous( BlockStoragePolicy bsp) { ... // Collect all distinct blocks Set<BlockInfo> allBlocks = new HashSet<>(Arrays.asList(getBlocks()));
We can either fix each caller or alternatively fix getBlocks to never return null.