mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Add null check for categories in Media.java
This commit is contained in:
parent
11f45a4fd8
commit
05c1a83790
1 changed files with 3 additions and 2 deletions
|
|
@ -235,8 +235,9 @@ public class Media implements Parcelable {
|
||||||
width = in.readInt();
|
width = in.readInt();
|
||||||
height = in.readInt();
|
height = in.readInt();
|
||||||
license = in.readString();
|
license = in.readString();
|
||||||
//FIXME: Null check
|
if (categories != null) {
|
||||||
in.readStringList(categories);
|
in.readStringList(categories);
|
||||||
|
}
|
||||||
descriptions = in.readHashMap(ClassLoader.getSystemClassLoader());
|
descriptions = in.readHashMap(ClassLoader.getSystemClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue