Merge pull request #457 from J1031/bugfix/transaction_is_null

修复ServerTransaction空指针异常
This commit is contained in:
648540858 2022-04-28 14:02:18 +08:00 committed by GitHub
commit 78f7f7645c

View File

@ -190,6 +190,10 @@ public class RegisterRequestProcessor extends SIPRequestProcessorParent implemen
private void sendResponse(RequestEvent evt, Response response) throws InvalidArgumentException, SipException {
ServerTransaction serverTransaction = getServerTransaction(evt);
if (serverTransaction == null) {
logger.warn("回复失败:{}", response);
return;
}
serverTransaction.sendResponse(response);
if (serverTransaction.getDialog() != null) serverTransaction.getDialog().delete();
}