Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Updater: Fix NullPointerException on startup update check.

Mohammed Althaf Thayyil requested to merge 780-s-updater_fixes into v1-s

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

👪 ❤️ https://gitlab.e.foundation/internal/wiki/-/wikis/development/code-review

Edited by Mohammed Althaf Thayyil

Merge request reports

Loading