Commit 1e2f74f4 authored by Simon Morlat's avatar Simon Morlat

Fix initialization of string reference with nullptr, causing a crash.

parent 304cd1d2
......@@ -289,7 +289,7 @@ void ServerGroupChatRoomPrivate::confirmJoining (SalCallOp *op) {
if (participant->isAdmin()) {
if (joiningPendingAfterCreation){
if (!initializeParticipants(participant, op)){
op->decline(SalReasonNotAcceptable, nullptr);
op->decline(SalReasonNotAcceptable, "");
requestDeletion();
}
/* we don't accept the session yet: initializeParticipants() has launched queries for device information
......@@ -314,7 +314,7 @@ void ServerGroupChatRoomPrivate::confirmRecreation (SalCallOp *op) {
auto participant = q->findParticipant(Address(op->getFrom()));
if (!participant){
lError() << q << " bug - " << op->getFrom() << " is not a participant.";
op->decline(SalReasonInternalError, nullptr);
op->decline(SalReasonInternalError, "");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment