package org.jsmpp.session;

import org.jsmpp.bean.DeliverSm;

public class ClientResponseHandler {

    public void processDeliverSm(ClientSession session, DeliverSm deliverSm) {
        session.getMessageReceiverListener().onAcceptDeliverSm(deliverSm);
        session.getPDUSender().sendDeliverSmResp(deliverSm);
    }
}
@@ -58,45 +58,197 @@
 Sm;%0A
-%0Apublic class ClientResponseHandler %7B
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class ClientResponseHandler %7B%0A    private static final Logger logger = LoggerFactory.getLogger(ClientResponseHandler.class);
 %0A%0A  
@@ -324,16 +324,80 @@
 erSm) %7B%0A
+        if (session.getMessageReceiverListener() != null) %7B%0A    
         
@@ -459,24 +459,28 @@
 deliverSm);%0A
+    
         sess
@@ -524,19 +524,156 @@
 deliverSm);%0A
+        %7D else %7B%0A            logger.info(%22Message received to ClientResponseHandler, but MessageReceiverListener is not set%22);%0A        %7D%0A
     %7D%0A%7D

make MessageReceiverListener nullable