修复ServerTransaction空指针异常
This commit is contained in:
parent
65d081f8c4
commit
908e97f62b
@ -190,6 +190,10 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
|
|||||||
|
|
||||||
private void sendResponse(RequestEvent evt, Response response) throws InvalidArgumentException, SipException {
|
private void sendResponse(RequestEvent evt, Response response) throws InvalidArgumentException, SipException {
|
||||||
ServerTransaction serverTransaction = getServerTransaction(evt);
|
ServerTransaction serverTransaction = getServerTransaction(evt);
|
||||||
|
if (serverTransaction == null) {
|
||||||
|
logger.warn("回复失败:{}", response);
|
||||||
|
return;
|
||||||
|
}
|
||||||
serverTransaction.sendResponse(response);
|
serverTransaction.sendResponse(response);
|
||||||
if (serverTransaction.getDialog() != null) serverTransaction.getDialog().delete();
|
if (serverTransaction.getDialog() != null) serverTransaction.getDialog().delete();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user