summaryrefslogtreecommitdiff
path: root/src/de/danoeh
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-06-14 11:05:59 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-06-14 11:05:59 +0200
commit4c4b28062d701b2a0019444ae9f34766558ba5b9 (patch)
tree6b4f0b9cbd7266d4a5f759efe14c076d0c910fea /src/de/danoeh
parent1e28ad36dfa37bb64e97aa8f9ae34fea81b26c4d (diff)
downloadAntennaPod-4c4b28062d701b2a0019444ae9f34766558ba5b9.zip
Fixed NullPointerException in ImageDiskCache
Diffstat (limited to 'src/de/danoeh')
-rw-r--r--src/de/danoeh/antennapod/asynctask/ImageDiskCache.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/asynctask/ImageDiskCache.java b/src/de/danoeh/antennapod/asynctask/ImageDiskCache.java
index b90d78c14..1d069daa5 100644
--- a/src/de/danoeh/antennapod/asynctask/ImageDiskCache.java
+++ b/src/de/danoeh/antennapod/asynctask/ImageDiskCache.java
@@ -189,6 +189,10 @@ public class ImageDiskCache {
* The image will be stored in the thumbnail cache.
*/
public void loadThumbnailBitmap(final String url, final ImageView target, final int length) {
+ if (url == null) {
+ Log.w(TAG, "loadThumbnailBitmap: Call was ignored because url = null");
+ return;
+ }
final ImageLoader il = ImageLoader.getInstance();
target.setTag(R.id.image_disk_cache_key, url);
if (diskCache != null) {
@@ -217,6 +221,10 @@ public class ImageDiskCache {
* The image will be stored in the cover cache.
*/
public void loadCoverBitmap(final String url, final ImageView target, final int length) {
+ if (url == null) {
+ Log.w(TAG, "loadCoverBitmap: Call was ignored because url = null");
+ return;
+ }
final ImageLoader il = ImageLoader.getInstance();
target.setTag(R.id.image_disk_cache_key, url);
if (diskCache != null) {