Fixed NullpointerException in DownloadRequester
This commit is contained in:
parent
e5b9b68e28
commit
5da3b934ab
|
@ -113,7 +113,7 @@ public class DownloadRequester {
|
||||||
private boolean isFilenameAvailable(String path) {
|
private boolean isFilenameAvailable(String path) {
|
||||||
for (String key : downloads.keySet()) {
|
for (String key : downloads.keySet()) {
|
||||||
FeedFile f = downloads.get(key);
|
FeedFile f = downloads.get(key);
|
||||||
if (f.getFile_url().equals(path)) {
|
if (f.getFile_url() != null && f.getFile_url().equals(path)) {
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
Log.d(TAG, path
|
Log.d(TAG, path
|
||||||
+ " is already used by another requested download");
|
+ " is already used by another requested download");
|
||||||
|
|
Loading…
Reference in New Issue