From ccc1976d0053b6c052356f3c9440262146104ca3 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Thu, 8 Dec 2022 18:25:03 +0000 Subject: [PATCH] Added defensiveness --- src/main/java/org/qortal/account/SelfSponsorshipAlgoV1.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/qortal/account/SelfSponsorshipAlgoV1.java b/src/main/java/org/qortal/account/SelfSponsorshipAlgoV1.java index 474bbdf2..725e53f5 100644 --- a/src/main/java/org/qortal/account/SelfSponsorshipAlgoV1.java +++ b/src/main/java/org/qortal/account/SelfSponsorshipAlgoV1.java @@ -52,6 +52,11 @@ public class SelfSponsorshipAlgoV1 { public void run() throws DataException { + if (this.accountData == null) { + // Nothing to do + return; + } + this.fetchSponsorshipRewardShares(); if (this.sponsorshipRewardShares.isEmpty()) { // Nothing to do