camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: Add an NPE guard
Date Fri, 19 Sep 2014 15:08:36 GMT
Repository: camel
Updated Branches:
  refs/heads/master 2b6b390e4 -> 94d6f0dd2


Add an NPE guard


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/94d6f0dd
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/94d6f0dd
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/94d6f0dd

Branch: refs/heads/master
Commit: 94d6f0dd260583e89a2a66db1c4c4d25a051a361
Parents: 2b6b390
Author: Daniel Kulp <dkulp@apache.org>
Authored: Fri Sep 19 11:08:10 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Fri Sep 19 11:08:10 2014 -0400

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/94d6f0dd/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
index 2bba898..c0adf7c 100644
--- a/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
@@ -1134,7 +1134,7 @@ public final class ObjectHelper {
      * @return {@code true} if the given type is a Java primitive array type
      */
     public static boolean isPrimitiveArrayType(Class<?> clazz) {
-        if (clazz.isArray()) {
+        if (clazz != null && clazz.isArray()) {
             return clazz.getComponentType().isPrimitive();
         }
         return false;


Mime
View raw message