From 393bcd6869d4d77b2048c9c625e36eaeb6963ef3 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Wed, 25 Jul 2012 08:34:39 +0200 Subject: [PATCH] FIxed null pointer exception when a file details view receives a message from the download service --- AndroidManifest.xml | 2 +- src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9a269f2d..7f3a9ef3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,7 +18,7 @@ --> + android:versionName="0.1.179B" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java index 7101dd06..acc07bf2 100644 --- a/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java +++ b/src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java @@ -556,7 +556,7 @@ public class FileDetailFragment extends SherlockFragment implements public void onReceive(Context context, Intent intent) { String accountName = intent.getStringExtra(FileDownloader.ACCOUNT_NAME); - if (accountName.equals(mAccount.name) && mFile != null) { + if (!isEmpty() && accountName.equals(mAccount.name)) { boolean downloadWasFine = intent.getBooleanExtra(FileDownloader.EXTRA_DOWNLOAD_RESULT, false); String downloadedRemotePath = intent.getStringExtra(FileDownloader.EXTRA_REMOTE_PATH); if (mFile.getRemotePath().equals(downloadedRemotePath)) { -- 2.11.0