mirror of
https://github.com/mastodon/mastodon-android.git
synced 2025-01-11 00:33:50 +01:00
Merge pull request #655 from nilathedragon/patch-1
Do not assume languages array will contain entries
This commit is contained in:
commit
8887f75b70
@ -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
Block a user