From d791a7222b5e6ff10fec3ca45e5bc17c787e8535 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 27 Nov 2011 22:46:25 +0300 Subject: [PATCH] fix deserialization null pointer exception in Article --- AndroidManifest.xml | 4 ++-- src/org/fox/ttrss/Article.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6c7aa852..4ce9964f 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="17" + android:versionName="0.1.16"> diff --git a/src/org/fox/ttrss/Article.java b/src/org/fox/ttrss/Article.java index d6683f96..2186dd09 100644 --- a/src/org/fox/ttrss/Article.java +++ b/src/org/fox/ttrss/Article.java @@ -1,4 +1,5 @@ package org.fox.ttrss; +import java.util.ArrayList; import java.util.List; import android.os.Parcel; @@ -51,8 +52,11 @@ public class Article implements Parcelable { is_updated = in.readInt() == 1; title = in.readString(); link = in.readString(); - feed_id = in.readInt(); + feed_id = in.readInt(); + + if (tags == null) tags = new ArrayList(); in.readStringList(tags); + content = in.readString(); }