fix: NullPointerException crash while change post language twice
Closes https://github.com/mastodon/mastodon-android/issues/766
This commit is contained in:
parent
48f9aabaf7
commit
a65d6fbeb3
|
@ -97,7 +97,7 @@ public class ComposeLanguageAlertViewController{
|
|||
int i=0;
|
||||
boolean found=false;
|
||||
for(SpecialLocaleInfo li:specialLocales){
|
||||
if(li.locale.equals(previouslySelected.locale)){
|
||||
if(null!=li.locale&&li.locale.equals(previouslySelected.locale)){
|
||||
selectedLocale=li.locale;
|
||||
selectedIndex=i;
|
||||
found=true;
|
||||
|
|
Loading…
Reference in New Issue