Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 97586 invoked from network); 5 Dec 2007 11:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 11:46:37 -0000 Received: (qmail 18048 invoked by uid 500); 5 Dec 2007 11:46:25 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 17948 invoked by uid 500); 5 Dec 2007 11:46:24 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 17937 invoked by uid 500); 5 Dec 2007 11:46:24 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 17934 invoked by uid 99); 5 Dec 2007 11:46:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 03:46:24 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 11:46:34 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 08B0C1A9832; Wed, 5 Dec 2007 03:46:12 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r601302 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Date: Wed, 05 Dec 2007 11:46:11 -0000 To: axis2-cvs@ws.apache.org From: azeez@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071205114613.08B0C1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: azeez Date: Wed Dec 5 03:45:56 2007 New Revision: 601302 URL: http://svn.apache.org/viewvc?rev=601302&view=rev Log: Null check Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=601302&r1=601301&r2=601302&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java (original) +++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java Wed Dec 5 03:45:56 2007 @@ -54,6 +54,7 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Locale; +import java.util.Map; public class BeanUtil { @@ -126,17 +127,18 @@ JClass supClass = jClass.getSuperclass(); while (!"java.lang.Object".equals(supClass.getQualifiedName())) { properties = supClass.getDeclaredProperties(); - excludes = (ArrayList) axisService.getBeanExludeMap().get( - supClass.getQualifiedName()); - - for (int i = 0; i < properties.length; i++) { - JProperty property = properties[i]; - //Excluding properties if it is suppose to be - if(excludes != null && excludes.contains( - getCorrectName(getCorrectName(property.getSimpleName())))) { - continue; + Map map = axisService.getBeanExludeMap(); + if (map != null) { + excludes = (ArrayList) map.get(supClass.getQualifiedName()); + for (int i = 0; i < properties.length; i++) { + JProperty property = properties[i]; + //Excluding properties if it is suppose to be + if(excludes != null && excludes.contains( + getCorrectName(getCorrectName(property.getSimpleName())))) { + continue; + } + propertyList.add(property); } - propertyList.add(property); } supClass = supClass.getSuperclass(); } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org