mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-23 19:37:51 +00:00
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