check for article.attachments not being null, bump version

This commit is contained in:
Andrew Dolgov 2012-02-06 14:21:56 +03:00
parent de209e02a1
commit 36289af071
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="60"
android:versionName="0.4.12" >
android:versionCode="61"
android:versionName="0.4.13" >
<uses-sdk android:minSdkVersion="7" />

View File

@ -152,7 +152,7 @@ public class ArticleFragment extends Fragment {
"</head>" +
"<body>" + articleContent;
if (m_article.attachments.size() != 0) {
if (m_article.attachments != null && m_article.attachments.size() != 0) {
String attachments = "<div class=\"attachments\">Attachments: ";
for (Attachment a : m_article.attachments) {