title: GooglePlayServicesUtil.getErrorDialog is null
body: <p>I'm using ACRA (<a href="http://acra.ch" rel="noreferrer">arca.ch</a>) to generate automatic error reports.</p>
  
  <p>I just released a new version of my app using Google Maps Android API v2.  I'm getting an error reported by EEEPad and Transformer Pad users when trying to show the dialog returned by GooglePlayServicesUtil.getErrorDialog.  Does anyone know why this might happen?</p>
  
  <p>Here is the relevant code and Logcat as reported by acra:</p>
  
  <p>While calling this line:</p>
  
  <pre><code>int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
  if(resultCode != ConnectionResult.SUCCESS)
  {
          //The dialog that comes back is null (probably due to the logcat message)
          Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 69);
          //So when I call the next line, the app crashes with a NullPointerException
          dialog.show();
  }
  ...
  </code></pre>
  
  <p>Logcat:</p>
  
  <pre><code>12-18 04:21:04.531 W/GooglePlayServicesUtil( 3977): Google Play Store signature invalid.
  12-18 04:21:04.551 E/GooglePlayServicesUtil( 3977): Google Play services is invalid. Cannot recover.
  </code></pre>
  
  <p>Thanks in advance for any help you can provide.</p>
  
  <p><strong>Update</strong></p>
  
  <p>The issue has not been resolved by google yet and I will update this question once I hear anything (see CommonsWare's answer for the Google Bug report link).  In the mean time if you come across this issue and don't want your app to crash, here's what I'm doing for the time being:</p>
  
  <pre><code>public void checkGooglePlayServicesAvailability()
  {
      int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
      if(resultCode != ConnectionResult.SUCCESS)
      {
          Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 69);
          if(dialog != null)
          {
              dialog.show();                
          }
          else
          {
              showOkDialogWithText(this, "Something went wrong. Please make sure that you have the Play Store installed and that you are connected to the internet. Contact developer with details if this persists.");
          }
      }
  
      Log.d("GooglePlayServicesUtil Check", "Result is: " + resultCode);
  }
  
  public static void showOkDialogWithText(Context context, String messageText)
  {
      Builder builder = new AlertDialog.Builder(context);
      builder.setMessage(messageText);
      builder.setCancelable(true);
      builder.setPositiveButton("OK", null);
      AlertDialog dialog = builder.create();
      dialog.show();
  }
  </code></pre>