fix deserialization null pointer exception in Article
This commit is contained in:
parent
1d4c780f50
commit
d791a7222b
@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="16"
|
android:versionCode="17"
|
||||||
android:versionName="0.1.15">
|
android:versionName="0.1.16">
|
||||||
<uses-sdk android:minSdkVersion="8" />
|
<uses-sdk android:minSdkVersion="8" />
|
||||||
<!-- <supports-screens android:smallScreens="false" android:normalScreens="false" /> -->
|
<!-- <supports-screens android:smallScreens="false" android:normalScreens="false" /> -->
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
package org.fox.ttrss;
|
package org.fox.ttrss;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
@ -52,7 +53,10 @@ public class Article implements Parcelable {
|
|||||||
title = in.readString();
|
title = in.readString();
|
||||||
link = in.readString();
|
link = in.readString();
|
||||||
feed_id = in.readInt();
|
feed_id = in.readInt();
|
||||||
|
|
||||||
|
if (tags == null) tags = new ArrayList<String>();
|
||||||
in.readStringList(tags);
|
in.readStringList(tags);
|
||||||
|
|
||||||
content = in.readString();
|
content = in.readString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user