Updater: Fix NullPointerException on startup update check.
Description
Fix null exception on update check when no mobiledata/wifi on startup
Screenshots
Technical details
AndroidRuntime: java.lang.RuntimeException: Unable to start receiver org.lineageos.updater.UpdatesCheckReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.net.NetworkCapabilities.hasTransport(int)' on a null object reference
Tests
- adb logcat | grep UpdatesCheckReceiver
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/780
10 commandments of code reviews
Edited by Mohammed Althaf Thayyil