We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abafff3 commit b15d136Copy full SHA for b15d136
app/src/processing/app/I18n.java
@@ -25,7 +25,7 @@ public class I18n {
25
static protected void init (String language) {
26
// there might be a null pointer exception ... most likely will never happen but the jvm gets mad
27
try {
28
- if (language == null || language.trim().isEmpty()) locale = Locale.getDefault();
+ if (language == null || language.trim().length() == 0) locale = Locale.getDefault();
29
else locale = new Locale(language);
30
i18n = ResourceBundle.getBundle("processing.app.Resources", locale);
31
} catch (java.lang.NullPointerException e) {
0 commit comments