Skip to content

Commit 6ea1c81

Browse files
ashishkumar468maskaravivek
authored andcommitted
BugFix #2718 (#2719)
* Handled null auth cookies
1 parent 963072e commit 6ea1c81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/fr/free/nrw/commons/mwapi/CustomMwApi.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public String getAuthCookie() {
6969
}
7070

7171
public void setAuthCookie(String authCookie) {
72+
if (authCookie == null) {//If the authCookie is null, no need to proceed
73+
return;
74+
}
75+
7276
this.authCookie = authCookie;
7377
this.isLoggedIn = true;
7478
String[] cookies = authCookie.split(";");

0 commit comments

Comments
 (0)