CrossGeeks / FacebookClientPlugin

Facebook Client Plugin for Xamarin iOS and Android
MIT License
106 stars 32 forks source link

OnAcitivtyResult crash when cancelling login #63

Open maurosampietro opened 4 years ago

maurosampietro commented 4 years ago

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.

Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.

Bug Information

Version Number of Plugin:

region Assembly Plugin.FacebookClient, Version=2.0.2.0, Culture=neutral, PublicKeyToken=null

// C:\Users\Sam.nuget\packages\plugin.facebookclient\2.2.1\lib\monoandroid90\Plugin.FacebookClient.dll

endregion

Simulator Tested On: Android 0.0 api 28 Version of Xamarin: 4.4 Versions of other things you are using:

Steps to reproduce the Behavior

try to login with facebook and when the facebook page opens up click on the X in the top left corner to cancel the operation.

Expected Behavior

App not to crash

Actual Behavior

App crashes on

  protected override void OnActivityResult( int requestCode, Result resultCode, Intent intent )
        {
            FacebookClientManager.OnActivityResult( requestCode, resultCode, intent ); !!THIS LINE CRASH THE APP

            base.OnActivityResult( requestCode, resultCode, intent );
        }