]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/UnsupportedException.java
Start adding enhancement toward v0.8.1
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / UnsupportedException.java
index 76f6565d2870306a96dcd9b5e317d6fc036a290a..5c786566fb1c358afc1d6664aa7e822e140dd5aa 100644 (file)
@@ -23,7 +23,8 @@ public class UnsupportedException extends SlcException {
         *            the object itself (its class name will be used in message)\r
         */\r
        public UnsupportedException(String nature, Object obj) {\r
-               super("Unsupported " + nature + ": " + obj.getClass());\r
+               super("Unsupported " + nature + ": "\r
+                               + (obj != null ? obj.getClass() : "[object is null]"));\r
        }\r
 \r
        /**\r