jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1082128 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
Date Wed, 16 Mar 2011 11:29:09 GMT
Author: dbrosius
Date: Wed Mar 16 11:29:08 2011
New Revision: 1082128

URL: http://svn.apache.org/viewvc?rev=1082128&view=rev
Log:
fix invalid null checking of sv:name attribute value due to type

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java?rev=1082128&r1=1082127&r2=1082128&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/xml/SysViewImportHandler.java
Wed Mar 16 11:29:08 2011
@@ -154,7 +154,7 @@ class SysViewImportHandler extends Targe
 
             // property name (value of sv:name attribute)
             String svName = getAttribute(atts, NameConstants.SV_NAME);
-            if (name == null) {
+            if (svName == null) {
                 throw new SAXException(new InvalidSerializedDataException(
                         "missing mandatory sv:name attribute of element sv:property"));
             }



Mime
View raw message