Skip to content

Commit

Permalink
[F] Fix null case
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Apr 25, 2020
1 parent 966494e commit 68bb9b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static String findCsrfToken(String html)
* Find login info from url
*
* @param html Html page
* @return Login info
* @return Login info or null
*/
public static VeraLoginInfo findLoginInfo(String html)
{
Expand Down Expand Up @@ -256,6 +256,6 @@ public static VeraLoginInfo findLoginInfo(String html)
}
}

return result;
return result.username() == null ? null : result;
}
}

0 comments on commit 68bb9b9

Please sign in to comment.