mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
API/Librus: Fix Classrooms NPE issue
This commit is contained in:
parent
b7191c938f
commit
d8afa47d2c
@ -1600,6 +1600,10 @@ public class Librus implements EdziennikInterface {
|
|||||||
r("finish", "Classrooms");
|
r("finish", "Classrooms");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (data.get("Classrooms") == null) {
|
||||||
|
r("finish", "Classrooms");
|
||||||
|
return;
|
||||||
|
}
|
||||||
JsonArray jClassrooms = data.get("Classrooms").getAsJsonArray();
|
JsonArray jClassrooms = data.get("Classrooms").getAsJsonArray();
|
||||||
//d("Got Classrooms: "+jClassrooms.toString());
|
//d("Got Classrooms: "+jClassrooms.toString());
|
||||||
classrooms.clear();
|
classrooms.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user