1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 15:32:06 +01:00

Fix AbstractError.getDescriptiveText()

This commit is contained in:
vanitasvitae 2017-03-16 11:25:38 +01:00 committed by Florian Schmaus
parent 4fb1449077
commit 8a8c01a4e5

View file

@ -67,8 +67,11 @@ public class AbstractError {
String defaultLocale = Locale.getDefault().getLanguage(); String defaultLocale = Locale.getDefault().getLanguage();
String descriptiveText = getDescriptiveText(defaultLocale); String descriptiveText = getDescriptiveText(defaultLocale);
if (descriptiveText == null) { if (descriptiveText == null) {
descriptiveText = getDescriptiveText("en");
if(descriptiveText == null) {
descriptiveText = getDescriptiveText(""); descriptiveText = getDescriptiveText("");
} }
}
return descriptiveText; return descriptiveText;
} }