mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Null check for cursor close
This commit is contained in:
parent
9543c03cab
commit
b30bee5b0f
1 changed files with 1 additions and 1 deletions
|
|
@ -145,10 +145,10 @@ public class UploadController {
|
|||
dateCreated = new Date();
|
||||
}
|
||||
contribution.setDateCreated(dateCreated);
|
||||
cursor.close();
|
||||
} else {
|
||||
contribution.setDateCreated(new Date());
|
||||
}
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
return contribution;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue