diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java index ad5e8c35b..5aa03c5ed 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmSyncService.java @@ -962,7 +962,9 @@ public final class ActFmSyncService { String purchaseToken = Preferences.getStringValue(BillingConstants.PREF_PURCHASE_TOKEN); String productId = Preferences.getStringValue(BillingConstants.PREF_PRODUCT_ID); try { - actFmInvoker.invoke("premium_update_android", "purchase_token", purchaseToken, "product_id", productId); + if (!checkForToken()) + throw new ActFmServiceException("Not logged in", null); + actFmInvoker.invoke("premium_update_android", "purchase_token", purchaseToken, "product_id", productId, "token", token); Preferences.setBoolean(BillingConstants.PREF_NEEDS_SERVER_UPDATE, false); if (onSuccess != null) onSuccess.run();