directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r693472 - /directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java
Date Tue, 09 Sep 2008 14:38:40 GMT
Author: pamarcelot
Date: Tue Sep  9 07:38:38 2008
New Revision: 693472

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

Modified:
    directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java

Modified: directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java?rev=693472&r1=693471&r2=693472&view=diff
==============================================================================
--- directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java
(original)
+++ directory/studio/trunk/studio-dsml-parser/src/main/java/org/apache/directory/studio/dsmlv2/reponse/SearchResultDoneDsml.java
Tue Sep  9 07:38:38 2008
@@ -72,7 +72,11 @@
         Element element = root.addElement( "searchResultDone" );
 
         LdapResultDsml ldapResultDsml = new LdapResultDsml( ( ( SearchResultDone ) instance
).getLdapResult(), instance );
-        ldapResultDsml.toDsml( element );
+        if ( ldapResultDsml != null)
+        {
+            ldapResultDsml.toDsml( element ); 
+        }
+        
         return element;
     }
 }



Mime
View raw message