Fix possible strange NPE on EncodeActivity

git-svn-id: https://zxing.googlecode.com/svn/trunk@2359 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-07-23 09:20:42 +00:00
parent 99c99f7314
commit 4a683a8266

View file

@ -94,8 +94,11 @@ public final class EncodeActivity extends Activity {
return true;
case R.id.menu_encode:
Intent intent = getIntent();
if (intent == null) {
return false;
}
intent.putExtra(USE_VCARD_KEY, !qrCodeEncoder.isUseVCard());
startActivity(getIntent());
startActivity(intent);
finish();
return true;
default: