Skip to content

Commit

Permalink
null pointer check added
Browse files Browse the repository at this point in the history
  • Loading branch information
uholeschak committed Nov 14, 2018
1 parent 044d15b commit 2d630fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BmwDeepObd/VagCodingActivity.cs
Expand Up @@ -107,6 +107,12 @@ protected override void OnCreate(Bundle savedInstanceState)

SetResult(Android.App.Result.Canceled);

if (IntentEcuInfo == null)
{
Finish();
return;
}

_activityCommon = new ActivityCommon(this, () =>
{
Expand Down
6 changes: 6 additions & 0 deletions BmwDeepObd/XmlToolEcuActivity.cs
Expand Up @@ -218,6 +218,12 @@ protected override void OnCreate(Bundle savedInstanceState)

SetResult(Android.App.Result.Canceled);

if (IntentEcuInfo == null)
{
Finish();
return;
}

_activityCommon = new ActivityCommon(this, () =>
{
Expand Down

0 comments on commit 2d630fd

Please sign in to comment.