fix deserialization null pointer exception in Article

This commit is contained in:
Andrew Dolgov 2011-11-27 22:46:25 +03:00
parent 1d4c780f50
commit d791a7222b
2 changed files with 7 additions and 3 deletions

View File

@ -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" /> -->

View File

@ -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;
@ -51,8 +52,11 @@ public class Article implements Parcelable {
is_updated = in.readInt() == 1; is_updated = in.readInt() == 1;
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();
} }