Skip to content

When getuser() failed, the app will crash #1304

Open

Description

@Android-Login-Analysis

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.meisolsson.githubsdk.model.User.login()' on a null object reference
at com.github.pockethub.android.accounts.LoginActivity.endAuth(LoginActivity.java:78)
at com.github.pockethub.android.accounts.LoginActivity.lambda$onUserLoggedIn$1(LoginActivity.java:45)

The reason is when userService.getUser() is null, user.login will crash.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions