This repository was archived by the owner on May 14, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
kin-devplatform-sdk/src/main/java/kin/devplatform/accountmanager Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,7 @@ private void handlePendingCreationState() {
176176 Logger .log (new Log ().withTag (TAG ).put ("setAccountState" , "PENDING_CREATION" ));
177177 // Start listen for account creation on the blockchain side.
178178 final Handler handler = new Handler (Looper .getMainLooper ());
179- if (accountCreationRegistration != null ) {
180- removeAccountCreationRegistration ();
181- }
179+ removeAccountCreationRegistration ();
182180
183181 prepareAccountCreationTimeoutFallback (handler );
184182 accountCreationRegistration = getKinAccount ().blockchainEvents ()
@@ -261,8 +259,10 @@ private KinAccount getKinAccount() {
261259 }
262260
263261 private void removeAccountCreationRegistration () {
264- accountCreationRegistration .remove ();
265- accountCreationRegistration = null ;
262+ if (accountCreationRegistration != null ) {
263+ accountCreationRegistration .remove ();
264+ accountCreationRegistration = null ;
265+ }
266266 }
267267
268268 private boolean isValidState (int currentState , int newState ) {
You can’t perform that action at this time.
0 commit comments