mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Check for null entity ID
This commit is contained in:
parent
d1b33933cf
commit
ed5cc82fa2
1 changed files with 4 additions and 0 deletions
|
|
@ -48,6 +48,10 @@ public class WikidataEditService {
|
||||||
* @param fileName
|
* @param fileName
|
||||||
*/
|
*/
|
||||||
public void createClaimWithLogging(String wikidataEntityId, String fileName) {
|
public void createClaimWithLogging(String wikidataEntityId, String fileName) {
|
||||||
|
if(wikidataEntityId == null
|
||||||
|
|| fileName == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
editWikidataProperty(wikidataEntityId, fileName);
|
editWikidataProperty(wikidataEntityId, fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue