--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadService.java Wed Jan 18 01:11:09 2012 +0100
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadService.java Mon Jan 16 14:25:26 2012 +0100
@@ -87,7 +87,7 @@
if(task != null && task.getPackage().equals(pack) && task.getStatus() == TASK_STATE.PENDING){
downloadTasks.remove(task);
}
- if(currentTask.getPackage().equals(pack)){
+ if(currentTask != null && currentTask.getPackage().equals(pack)){//TODO synchronization problem?
asyncExecutor.cancel(false);
}
return;