don't crash when language array empty
This commit is contained in:
parent
c05d0b600e
commit
b07858a66d
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue