andre-paraense / launchdarkly_flutter

A LaunchDarkly Flutter SDK
GNU Lesser General Public License v3.0
4 stars 5 forks source link

Update LaunchdarklyFlutterPlugin.java #27

Closed ookami-kb closed 3 years ago

ookami-kb commented 3 years ago

Requirements

Related issues

NPE happens if app is closed without/before calling init.

Describe the solution you've provided

Check for null.

Describe alternatives you've considered

No.

Additional context

No.

How to test?

  1. Open the app without calling init.
  2. Close the app.
  3. No NPE should happen on native side.

Future works

No.

andre-paraense commented 3 years ago

Thanks, @ookami-kb , will get to this soon.