1

Closed

v788 - Facebook Message - crash Mayhem w/ FB Cancel button

description

When I'm setting up a connection with Facebook: New Message as my event, but decide to cancel it (using the Cancel button inside the config window's display of the FB page, rather than the config window's own Cancel button), Mayhem crashes, giving me this error:

ArgumentNullException was unhandled by user code
Value cannot be null.
Parameter name: accessToken

private void LoadUser()
    {
        var fb = new FacebookClient(TokenProp);    ///ERRONEOUS LINE OF CODE

        dynamic result = fb.Get("/me");
        var uId = result.id;
        User_Info.Text = result.name;

        BitmapImage bi = new BitmapImage();
        bi.BeginInit();
        bi.UriSource = new Uri(String.Format("http://graph.facebook.com/{0}/picture", uId), UriKind.Absolute);
        bi.EndInit();

        Profile.Source = bi;

        // for login success
        CanSave = true;
        Revalidate();
        // remove after debug
        webBrowser.Navigate("www.facebook.com");
    }
Closed May 14, 2012 at 9:06 PM by erikm1
Fix confirmed in v880, though other issues have popped up from this series of events (to be written in separate documentation)

comments

erikm1 wrote May 4, 2012 at 6:58 PM

This is still an issue in v844

WillBeebe wrote May 11, 2012 at 8:40 PM

Fixed, ready to test in v875

erikm1 wrote May 14, 2012 at 9:05 PM

Fix confirmed, insofar as Mayhem no longer crashes when this happens, but a few other (albeit, minor) errors have sprung up from the most recent fix. I will put those into separate issue tracking documents (v880)