Do not assume languages array will contain entries
This commit is contained in:
parent
4bb255e0bb
commit
9436a838c0
|
@ -117,7 +117,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