title: When the user do not want to purchase in-app product and cancels Google store pop-up dialog, app crashes. Why?
body: <p>My in-app purchase works very well, however, when my users do not want to buy it, and cancels or exit "Google Store pop-up dialog", my app crashes (exits). I have this following code:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode,
                                  Intent data) {
      if (!mHelper.handleActivityResult(requestCode,
              resultCode, data)) {
          super.onActivityResult(requestCode, resultCode, data);
      }
  }
  
  IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener = new IabHelper.OnIabPurchaseFinishedListener() {
      public void onIabPurchaseFinished(IabResult result, Purchase purchase) {
  
          if (purchase.getSku().equals(ITEM_SKU)) {
              Log.d(TAG, "Purchase is fast mode");
              try {
                  mHelper.consumeAsync(purchase, mConsumeFinishedListener);
              } catch (Exception e) {
                  Log.d(TAG, "error");
              }
          }
  
      }
  };
  
  
  IabHelper.OnConsumeFinishedListener mConsumeFinishedListener = new IabHelper.OnConsumeFinishedListener() {
      public void onConsumeFinished(Purchase purchase, IabResult result) {
  
          Log.d(TAG, "Consumption finished. JSON: " + purchase.getOriginalJson() + ", signature: " + purchase.getSignature());
  
          if (mHelper == null) return;
  
          if (result.isSuccess()) {
              Log.i(TAG, "BOUGHT THE ITEM :-)");
              clickButton.setEnabled(true);
              buyButton.setEnabled(false);
          } else {
              Log.e(TAG, "Error while consuming: " + result);
          }
          Log.d(TAG, "End consumption flow.");
      }
  };
  </code></pre>