forked from Qortal/qortal
Fixed additional NPE
This commit is contained in:
parent
bede5a71f8
commit
0ec5e39517
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user