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

Skip to content

Fix possible NPE

Jonathan Klee requested to merge 2963-u-fix-NPE into main

Description

Fix possible NPE when getting the current token.

Indeed, if authData is empty (which is the default value), fromJson() returns null.

A whole refacto of the way the login work seems mandatory. I added the following issue in the upcoming sprint: https://gitlab.e.foundation/e/os/backlog/-/issues/2784

Screenshots

Technical details

Tests

Issues

https://gitlab.e.foundation/e/os/backlog/-/issues/2963

10 commandments of code reviews

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

Edited by Jonathan Klee

Merge request reports

Loading