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:
@@ -75,7 +75,7 @@ public class UserDataProperty extends PropertySupport.ReadWrite<String> {
|
|||||||
} else if (type instanceof Long) {
|
} else if (type instanceof Long) {
|
||||||
return 4;
|
return 4;
|
||||||
} else {
|
} 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;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user