summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Živković <[email protected]>2014-12-22 15:49:08 +0000
committerMarko Živković <[email protected]>2014-12-22 15:49:08 +0000
commit52b678fc43e41bd29d4ee7caa71808403f906709 (patch)
tree9ee365ce847923e665be18c1e84b07175aa9c883
parent028c461e8a007afe291de3be31c1b685465cea29 (diff)
Eliminated another potential source for reported NPE
git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@20 3b0d7934-f7ef-4143-9606-b51f2e2281fd
-rw-r--r--logo/src/xlogo/storage/workspace/WorkspaceConfig.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/logo/src/xlogo/storage/workspace/WorkspaceConfig.java b/logo/src/xlogo/storage/workspace/WorkspaceConfig.java
index 7f67897..6e52877 100644
--- a/logo/src/xlogo/storage/workspace/WorkspaceConfig.java
+++ b/logo/src/xlogo/storage/workspace/WorkspaceConfig.java
@@ -629,6 +629,8 @@ public class WorkspaceConfig extends StorableObject implements Serializable {
}
public Language getLanguage() {
+ if (language == null)
+ return Language.LANGUAGE_ENGLISH;
return language;
}