thebergamo / react-native-fbsdk-next

MIT License
633 stars 165 forks source link

fix(android): avoid crash on react-native reload if not initialized #474

Closed mikehardy closed 5 months ago

mikehardy commented 5 months ago

If initialize was called correctly, accessTokenTracker would always be non-null

But just in case the state is not correctly initialized, we can avoid crashing

Test Plan:

Untested. A null-check should be harmless though. @GreenFella will test the new release and report success/failure

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 12.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

GreenFella commented 5 months ago

If initialize was called correctly, accessTokenTracker would always be non-null

But just in case the state is not correctly initialized, we can avoid crashing

Test Plan:

Untested. A null-check should be harmless though. @GreenFella will test the new release and report success/failure

I tested the new release and it was a success. No more crash on startup Thank you Mike