From 1584f767f174ad4062d0fec4b3c5e64a6ffc5b22 Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Fri, 16 Sep 2011 00:02:54 +0000 Subject: [PATCH] NPE check in logger if type is null git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8255 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/core/properties/UserDataProperty.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java index 2b6c443fb..75980a25d 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java @@ -75,7 +75,7 @@ public class UserDataProperty extends PropertySupport.ReadWrite { } 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; } }