don't crash when language array empty

This commit is contained in:
sk 2023-02-16 17:04:56 +01:00
parent c05d0b600e
commit b07858a66d
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class Instance extends BaseModel{
ci.domain=uri;
ci.normalizedDomain=IDN.toUnicode(uri);
ci.description=Html.fromHtml(shortDescription).toString().trim();
if(languages!=null){
if(languages!=null && languages.size() > 0){
ci.language=languages.get(0);
ci.languages=languages;
}else{