geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r992940 - /geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
Date Mon, 06 Sep 2010 04:46:49 GMT
Author: gawor
Date: Mon Sep  6 04:46:49 2010
New Revision: 992940

URL: http://svn.apache.org/viewvc?rev=992940&view=rev
Log:
add null check

Modified:
    geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java

Modified: geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java?rev=992940&r1=992939&r2=992940&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deployment/src/main/java/org/apache/geronimo/deployment/xmlbeans/XmlBeansUtil.java
Mon Sep  6 04:46:49 2010
@@ -176,7 +176,7 @@ public class XmlBeansUtil {
                         XmlValidationError validationError = (XmlValidationError) o;
                         List<QName> expected = validationError.getExpectedQNames();
                         QName actual = validationError.getOffendingQName();
-                        if (ignoreElements.contains(actual.getLocalPart())) {
+                        if (actual != null && ignoreElements.contains(actual.getLocalPart()))
{
                             iterator.remove();
                             logger.warn(actual.getLocalPart() + " is not supported yet.");
                         }



Mime
View raw message