mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Fixed additional NPE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user