forked from github/szkolny
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");
|
||||
return;
|
||||
}
|
||||
if (data.get("Classrooms") == null) {
|
||||
r("finish", "Classrooms");
|
||||
return;
|
||||
}
|
||||
JsonArray jClassrooms = data.get("Classrooms").getAsJsonArray();
|
||||
//d("Got Classrooms: "+jClassrooms.toString());
|
||||
classrooms.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user