You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
AskUserForAgreementAsync does not handle the case where the user dismisses the message dialog using the back button on windows phone which means that ShowAsync returns null and the return clause will throw an exception
SendCrashReportsAsync in App.xaml.cs:658 caught exception: System.NullReferenceException: Object reference not set to an instance of an object. at HockeyApp.CrashHandler.<AskUserForAgreementAsync>d__c.MoveNext() --- End of stack trace from previous location where exception was thrown
protected virtual async Task<bool> AskUserForAgreementAsync()
{
var messageDialog = new MessageDialog(LocalizedStrings.LocalizedResources.SendCrashQuestion, LocalizedStrings.LocalizedResources.CrashData);
// Add commands and set their command ids
messageDialog.Commands.Add(new UICommand(LocalizedStrings.LocalizedResources.Send, null, true));
messageDialog.Commands.Add(new UICommand(LocalizedStrings.LocalizedResources.Delete, null, false));
// Set the command that will be invoked by default
messageDialog.DefaultCommandIndex = 1;
// Show the message dialog and get the event that was invoked via the async operator
var commandChosen = await messageDialog.ShowAsync();
return (Boolean)commandChosen.Id;
}
The text was updated successfully, but these errors were encountered:
File: HockeySDK-Windows\HockeySDK_WP81\Universal\CrashHandler.cs
Version: 2.2.2
Platform: WP8.1 Universal
AskUserForAgreementAsync
does not handle the case where the user dismisses the message dialog using the back button on windows phone which means that ShowAsync returns null and the return clause will throw an exceptionThe text was updated successfully, but these errors were encountered: