mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
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:
parent
99c99f7314
commit
4a683a8266
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue