OC-3097:(fix bug) When the connection is lost during a download, app thinks that...
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / FileDisplayActivity.java
index ed4f9ee..f0e9b82 100644 (file)
@@ -1035,7 +1035,7 @@ OCFileListFragment.ContainerActivity, FileDetailFragment.ContainerActivity, OnNa
 
             if (mWaitingToSend != null) {
                 mWaitingToSend = getStorageManager().getFileByPath(mWaitingToSend.getRemotePath()); // Update the file to send
-                if (mWaitingToSend.isDown()) {
+                if (mWaitingToSend.isDown() && mWaitingToSend.getStoragePath()!=null) {
                     sendDownloadedFile();
                 }
             }