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

Skip to content

fix: Prevent a NPE

Jonathan Klee requested to merge 0000-s-fix-NPE into main

Description

Both noAccountView() and onAccountAvailable() methods can return early, ending up in a RemoteViews not instanciated.

This fixes a crash spotted by sentry: https://murena-sas.sentry.io/projects/edrive/?project=4504355892101120

Screenshots

Technical details

Tests

Issues

10 commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

Summary by CodeRabbit

  • Bug Fixes
    • Improved the app widget's update process by adding a safeguard to prevent null pointer exceptions, enhancing stability and reliability.
Edited by CodeRabbitAI

Merge request reports

Loading