struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [34/50] [abbrv] struts git commit: WW-4436 Fixes NPE and uses String.valueOf() instead of .toString()
Date Wed, 31 Dec 2014 17:17:56 GMT
WW-4436 Fixes NPE and uses String.valueOf() instead of .toString()


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

Branch: refs/heads/master
Commit: 2bea99e96b448585caa0080ac1dc5faa1db85826
Parents: 29de868
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Tue Dec 23 21:54:01 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Dec 23 21:54:01 2014 +0100

----------------------------------------------------------------------
 .../com/opensymphony/xwork2/interceptor/ParametersInterceptor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/2bea99e9/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
----------------------------------------------------------------------
diff --git a/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
b/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
index d26d094..8317feb 100644
--- a/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
+++ b/xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java
@@ -362,7 +362,7 @@ public class ParametersInterceptor extends MethodFilterInterceptor {
         }
         boolean result = true;
         for (Object obj : values) {
-            if (isExcluded(obj.toString())) {
+            if (isExcluded(String.valueOf(obj))) {
                 result = false;
             }
         }


Mime
View raw message