Merge pull request #769 from jixiaoyong/master

fix: NullPointerException crash while change post language twice
This commit is contained in:
Gregory K 2024-01-25 11:14:52 +03:00 committed by GitHub
commit 5552dc2ac6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;