[npr-android-app] push by justinfr...@gmail.com - Null promoart on empty book on 2012-02-06 18:12 GMT

2 views
Skip to first unread message

npr-and...@googlecode.com

unread,
Feb 6, 2012, 1:13:13 PM2/6/12
to npr-a...@googlegroups.com
Revision: 29287c091448
Author: Justin Friberg <justin...@hotmail.com>
Date: Mon Feb 6 10:09:38 2012
Log: Null promoart on empty book

http://code.google.com/p/npr-android-app/source/detail?r=29287c091448

Modified:
/Npr/src/org/npr/api/Book.java

=======================================
--- /Npr/src/org/npr/api/Book.java Fri Jan 6 11:10:49 2012
+++ /Npr/src/org/npr/api/Book.java Mon Feb 6 10:09:38 2012
@@ -118,7 +118,9 @@
if (id != null) {
Book book = books.get(id);
if (book != null) {
- book.promoArt = promoArts.get(book.promoArt);
+ if (book.promoArt != null) {
+ book.promoArt = promoArts.get(book.promoArt);
+ }
result.add(book);
}
}

Reply all
Reply to author
Forward
0 new messages