From c306854ddc957517fdc687292965189281ff7841 Mon Sep 17 00:00:00 2001 From: Marko Živković Date: Mon, 22 Dec 2014 15:04:36 +0000 Subject: Eliminated potential NPE git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@17 3b0d7934-f7ef-4143-9606-b51f2e2281fd --- logo/src/xlogo/AppSettings.java | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3