NPE check in logger if type is null

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..ns 13 years ago
parent bb4a1d7961
commit 1584f767f1
  1. 2
      sdk/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;
}
}

Loading…
Cancel
Save