Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

Add null checks before calling PlatformPlugin methods #1368

Closed svillar closed 5 months ago

svillar commented 5 months ago

In 6958a465 we added a listener interface to the platform plugins so that the VRBrowserActivity could get events from them. The only flavour implementing the platform plugin right now is the VisionGlass one. That's why we still need to have null checks before any plugin method call. The aforementioned commit was adding a couple of unchecked calls and thus it was causing crashes for all non VisionGlass flavours.