fix potential crash
This commit is contained in:
@@ -511,8 +511,8 @@ namespace keepass2android
|
|||||||
|
|
||||||
ActionOnFinish afterAddEntry = new ActionOnFinish(this, (success, message, activity) =>
|
ActionOnFinish afterAddEntry = new ActionOnFinish(this, (success, message, activity) =>
|
||||||
{
|
{
|
||||||
if (success)
|
if (success && activity is EntryEditActivity entryEditActivity)
|
||||||
_appTask.AfterAddNewEntry((EntryEditActivity)activity, newEntry);
|
_appTask.AfterAddNewEntry(entryEditActivity, newEntry);
|
||||||
},closeOrShowError);
|
},closeOrShowError);
|
||||||
|
|
||||||
if ( State.IsNew ) {
|
if ( State.IsNew ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user