Fixed additional NPE

This commit is contained in:
CalDescent 2023-01-28 14:31:04 +00:00
parent bede5a71f8
commit 0ec5e39517

View File

@ -63,7 +63,7 @@ public class ArbitraryDataResource {
this.calculateChunkCounts();
}
if (this.totalChunkCount == 0) {
if (this.totalChunkCount == null || this.totalChunkCount == 0) {
// Assume not published
return new ArbitraryResourceStatus(Status.NOT_PUBLISHED, this.localChunkCount, this.totalChunkCount);
}