Browse Source

NPE check in logger if type is null

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
bre..ns 14 years ago
parent
commit
39905ac43c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java

+ 1 - 1
jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java

@@ -75,7 +75,7 @@ public class UserDataProperty extends PropertySupport.ReadWrite<String> {
         } else if (type instanceof Long) {
             return 4;
         } else {
-            Logger.getLogger(UserDataProperty.class.getName()).log(Level.WARNING, "UserData not editable" + type.getClass());
+            Logger.getLogger(UserDataProperty.class.getName()).log(Level.WARNING, "UserData not editable" + (type == null ? "null" : type.getClass()));
             return -1;
         }
     }