diff options
author | Marko Živković <[email protected]> | 2014-12-22 15:04:36 +0000 |
---|---|---|
committer | Marko Živković <[email protected]> | 2014-12-22 15:04:36 +0000 |
commit | c306854ddc957517fdc687292965189281ff7841 (patch) | |
tree | 08a4f5af7d8016d037c26bbb67b221006931616d | |
parent | c69d87f7d818928ff174abe172c5c9b7abbc97c8 (diff) |
Eliminated potential NPE
git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@17 3b0d7934-f7ef-4143-9606-b51f2e2281fd
-rw-r--r-- | logo/src/xlogo/AppSettings.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/logo/src/xlogo/AppSettings.java b/logo/src/xlogo/AppSettings.java index c746282..49b81ca 100644 --- a/logo/src/xlogo/AppSettings.java +++ b/logo/src/xlogo/AppSettings.java @@ -60,6 +60,9 @@ public class AppSettings */
public String translate(String key)
{
+ if (Logo.messages == null) {
+ Logo.generateLanguage(Language.LANGUAGE_ENGLISH); // TODO this is a temporary bug fix
+ }
return Logo.messages.getString(key);
}
|