Started getting this error in the production version of my app.
java.lang.NullPointerException: Attempt to invoke virtual method \'boolean android.content.In
Seems like the error occurs on devices where Google Play Services are not installed, passed intent will then be null.
You can make sure intent passed is not null by overriding startActivityForResult method in your Activity.
@Override
public void startActivityForResult(Intent intent, int requestCode) {
if (intent == null) {
intent = new Intent();
}
super.startActivityForResult(intent, requestCode);
}