You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2019/04/29 21:58:35 UTC

[directory-ldap-api] branch master updated: Applied fix for DIRAPI-300 (without the potential NPE ; -)

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 104adb9  Applied fix for DIRAPI-300 (without the potential NPE ;-)
104adb9 is described below

commit 104adb97d3e474d269a2f94c1509b4cc71ef5a35
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Apr 29 23:58:27 2019 +0200

    Applied fix for DIRAPI-300 (without the potential NPE ;-)
---
 .../java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java b/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
index ba0edeb..365fe29 100644
--- a/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
+++ b/dsml/engine/src/main/java/org/apache/directory/api/dsmlv2/engine/Dsmlv2Engine.java
@@ -427,7 +427,10 @@ public class Dsmlv2Engine
         }
 
         // We can now write the tag, as we don't have an error
-        respWriter.write( batchResponseTag );
+        if ( respWriter != null )
+        {
+            respWriter.write( batchResponseTag );
+        }
 
         // (Request == null when there's no more request to process)
         while ( request != null )