deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-550 improved proxy detection
Date Fri, 28 Mar 2014 09:50:33 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master b671c09c9 -> d11390049


DELTASPIKE-550 improved proxy detection


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

Branch: refs/heads/master
Commit: d113900492fe5a396bf6b012439ff806af880044
Parents: b671c09
Author: gpetracek <gpetracek@apache.org>
Authored: Fri Mar 28 10:49:04 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Fri Mar 28 10:49:04 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/deltaspike/core/util/ProxyUtils.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/d1139004/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
index 7360986..c0b87c2 100644
--- a/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
+++ b/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ProxyUtils.java
@@ -51,6 +51,11 @@ public abstract class ProxyUtils
      */
     public static boolean isProxiedClass(Class currentClass)
     {
+        if (currentClass == null || currentClass.getSuperclass() == null)
+        {
+            return false;
+        }
+
         return currentClass.getName().startsWith(currentClass.getSuperclass().getName())
&&
             currentClass.getName().contains("$$");
     }


Mime
View raw message