@Override protected Merchant doInBackground(Context... context) { ctx = context[0]; Account account = CloverAccount.getAccount(ctx); AppsConnector ac = new AppsConnector(ctx, account); Merchant m; try { m = ac.getApp().getMerchant(); } catch (RemoteException | ServiceException | ClientException | BindingException e) { m = null; e.printStackTrace(); } return m != null ? m : new Merchant(); }Merchant object is (by inspection in the debugger) not null, and yet getID() returns null when called from a Sandbox app.