FIxed null pointer exception when a file details view receives a message from the...
authorDavid A. Velasco <dvelasco@solidgear.es>
Wed, 25 Jul 2012 06:34:39 +0000 (08:34 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Wed, 25 Jul 2012 06:34:39 +0000 (08:34 +0200)
AndroidManifest.xml
src/eu/alefzero/owncloud/ui/fragment/FileDetailFragment.java

index 9a269f2..7f3a9ef 100644 (file)
@@ -18,7 +18,7 @@
  -->\r
 <manifest package="eu.alefzero.owncloud"\r
     android:versionCode="1"\r
-    android:versionName="0.1.178B" xmlns:android="http://schemas.android.com/apk/res/android">\r
+    android:versionName="0.1.179B" xmlns:android="http://schemas.android.com/apk/res/android">\r
 \r
     <uses-permission android:name="android.permission.GET_ACCOUNTS" />\r
     <uses-permission android:name="android.permission.USE_CREDENTIALS" />\r
index 7101dd0..acc07bf 100644 (file)
@@ -556,7 +556,7 @@ public class FileDetailFragment extends SherlockFragment implements
         public void onReceive(Context context, Intent intent) {\r
             String accountName = intent.getStringExtra(FileDownloader.ACCOUNT_NAME);\r
 \r
-            if (accountName.equals(mAccount.name) && mFile != null) {\r
+            if (!isEmpty() && accountName.equals(mAccount.name)) {\r
                 boolean downloadWasFine = intent.getBooleanExtra(FileDownloader.EXTRA_DOWNLOAD_RESULT, false);\r
                 String downloadedRemotePath = intent.getStringExtra(FileDownloader.EXTRA_REMOTE_PATH);\r
                 if (mFile.getRemotePath().equals(downloadedRemotePath)) {\r