Skip to content

Commit

Permalink
Return if service/context is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Jan 26, 2018
1 parent 79bf423 commit 6fa9a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Plugin.InAppBilling.Android/InAppBillingImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,10 @@ public void OnServiceConnected(ComponentName name, IBinder service)
Service = IInAppBillingServiceStub.AsInterface(service);

if (Service == null || Context == null)
{
tcsConnect?.TrySetResult(false);
return;
}

var pkgName = Context.PackageName;

Expand Down

0 comments on commit 6fa9a14

Please sign in to comment.