NPE check in logger if type is null
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
bb4a1d7961
commit
1584f767f1
@ -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…
x
Reference in New Issue
Block a user