projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed icon for text files
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
files
/
services
/
FileDownloader.java
diff --git
a/src/com/owncloud/android/files/services/FileDownloader.java
b/src/com/owncloud/android/files/services/FileDownloader.java
index
b01d61e
..
7872c36
100644
(file)
--- a/
src/com/owncloud/android/files/services/FileDownloader.java
+++ b/
src/com/owncloud/android/files/services/FileDownloader.java
@@
-198,6
+198,7
@@
public class FileDownloader extends Service implements OnDatatransferProgressLis
* @param file A file that could be in the queue of downloads.
\r
*/
\r
public boolean isDownloading(Account account, OCFile file) {
\r
* @param file A file that could be in the queue of downloads.
\r
*/
\r
public boolean isDownloading(Account account, OCFile file) {
\r
+ if (account == null || file == null) return false;
\r
String targetKey = buildRemoteName(account, file);
\r
synchronized (mPendingDownloads) {
\r
if (file.isDirectory()) {
\r
String targetKey = buildRemoteName(account, file);
\r
synchronized (mPendingDownloads) {
\r
if (file.isDirectory()) {
\r