NZME / react-native-ad-manager

Google Ad Manager bridge for React Native
MIT License
52 stars 61 forks source link

Restore null check around setAdUnitId #94

Closed marcshilling closed 1 year ago

marcshilling commented 1 year ago

This is a follow-up to #86, which was subsequently reverted via ef79c734bd9cd4b055339d38e2af5f024b486996...

I continue to get this crash reported from production: image

The original fix attempt was incorrect because it moved the logic inside the if (this.adUnitID != null) { block. This change keeps everything in place...just adds the null check.