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

Commit 527ba690 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Merge branch '2963-u-fix-NPE' into 'main'

Fix possible NPE

See merge request !542
parents bdb2a74d dec2b0fe
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -90,7 +90,12 @@ class AppLoungeDataStore @Inject constructor(
    }

    fun getAuthData(): AuthData {
        return gson.fromJson(authData.getSync(), AuthData::class.java)
        val authData = authData.getSync()
        return if (authData.isEmpty()) {
            AuthData("", "")
        } else {
            gson.fromJson(authData, AuthData::class.java)
        }
    }

    /**