directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r571072 - /directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java
Date Thu, 30 Aug 2007 08:41:11 GMT
Author: seelmann
Date: Thu Aug 30 01:41:11 2007
New Revision: 571072

URL: http://svn.apache.org/viewvc?rev=571072&view=rev
Log:
Fixed NPE

Modified:
    directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java

Modified: directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java?rev=571072&r1=571071&r2=571072&view=diff
==============================================================================
--- directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java
(original)
+++ directory/studio/trunk/studio-connection-core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionIO.java
Thu Aug 30 01:41:11 2007
@@ -224,7 +224,7 @@
                 Attribute keyAttribute = extendedPropertyElement.attribute( KEY_TAG );
                 Attribute valueAttribute = extendedPropertyElement.attribute( VALUE_TAG );
 
-                if ( keyAttribute != null )
+                if ( keyAttribute != null && valueAttribute != null )
                 {
                     connection.setExtendedProperty( keyAttribute.getValue(), valueAttribute.getValue()
);
                 }



Mime
View raw message