We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ade4194 + 1219844 commit 0ede6c9Copy full SHA for 0ede6c9
src/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java
@@ -94,8 +94,14 @@ public String getGroupName() {
94
95
@Override
96
public int compare(OCUpload upload1, OCUpload upload2) {
97
- if (upload1.getUploadStatus().equals(UploadStatus.UPLOAD_IN_PROGRESS)) {
98
- if (!upload2.getUploadStatus().equals(UploadStatus.UPLOAD_IN_PROGRESS)) {
+ if (upload1 == null){
+ return -1;
99
+ }
100
+ if (upload2 == null){
101
+ return 1;
102
103
+ if (UploadStatus.UPLOAD_IN_PROGRESS.equals(upload1.getUploadStatus())) {
104
+ if (!UploadStatus.UPLOAD_IN_PROGRESS.equals(upload2.getUploadStatus())) {
105
return -1;
106
}
107
// both are in progress
0 commit comments