Revision: 7400
Author: [email protected]
Date: Sun Aug  9 19:27:18 2009
Log: Return Connection_Was_Deleted Response to avoid NPE latter
http://code.google.com/p/mobicents/source/detail?r=7400

Modified:
/trunk/servers/media/core/controllers/mgcp/src/main/java/org/mobicents/media/server/ctrl/mgcp/NotificationRequestAction.java

=======================================
--- /trunk/servers/media/core/controllers/mgcp/src/main/java/org/mobicents/media/server/ctrl/mgcp/NotificationRequestAction.java Wed Jun 3 10:11:52 2009 +++ /trunk/servers/media/core/controllers/mgcp/src/main/java/org/mobicents/media/server/ctrl/mgcp/NotificationRequestAction.java Sun Aug 9 19:27:18 2009
@@ -125,7 +125,8 @@
//connection = endpoint.getConnection(connectionID.toString()); connectionActivity = controller.getActivity(endpoint.getLocalName(), connectionID.toString());
                     if (connectionActivity == null) {
-                        reject(ReturnCode.Connection_Was_Deleted);
+                        return reject(ReturnCode.Connection_Was_Deleted);
+
                     }

                     connection = connectionActivity.getMediaConnection();

Reply via email to