Skip to content

[flutter_appauth] iOS app would crash when authorizationCode was nil #589

@kennethj

Description

@kennethj

iOS app would crash when authorizationCode was nil

Error message in Obj-C:

The operation couldn’t be completed. *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: authorizationCode)

The exception is thrown here: https://github.com/MaikuB/flutter_appauth/blob/master/flutter_appauth/ios/Classes/AppAuthIOSAuthorization.m#L86-L89

This PR #588 prevents the app from crashing by catching the exception and sending it to the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions