Skip to content

Commit 9b338b0

Browse files
committed
[nrf fromlist] [door-lock] Fix the crash when providing null-ed user index
to the HandleLocalLockOperationError method We cannot assume that the valid user index is provided in case of the invalid credential. In fact, the spec in 5.2.5.4.4 says that UserIndex SHALL be null if there is no user id that can be determined for the given operation source. Signed-off-by: Marcin Kajor <marcin.kajor@nordicsemi.no>
1 parent f8e6f9d commit 9b338b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/clusters/door-lock-server/door-lock-server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void DoorLockServer::HandleLocalLockOperationError(chip::EndpointId endpointId,
211211

212212
HandleWrongCodeEntry(endpointId);
213213

214-
ChipLogProgress(Zcl, "Handling a local Lock Operation Error: [endpoint=%d, user=%d]", endpointId, userId.Value());
214+
ChipLogProgress(Zcl, "Handling a local Lock Operation Error: [endpoint=%d]", endpointId);
215215
}
216216

217217
bool DoorLockServer::HandleWrongCodeEntry(chip::EndpointId endpointId)

0 commit comments

Comments
 (0)