From: David A. Velasco Date: Wed, 25 Jul 2012 06:34:39 +0000 (+0200) Subject: FIxed null pointer exception when a file details view receives a message from the... X-Git-Tag: oc-android-1.4.3~241 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/393bcd6869d4d77b2048c9c625e36eaeb6963ef3?ds=inline FIxed null pointer exception when a file details view receives a message from the download service --- 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)) {