Skip to content

Commit 36fa78a

Browse files
author
Daniel K. O. (dkosmari)
committed
Added back the null pointer check.
1 parent e25195f commit 36fa78a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/ButtonComboManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void ButtonComboManager::UpdateInputVPAD(const VPADChan chan, std::span<VPADStat
401401
DEBUG_FUNCTION_LINE_ERR("Invalid VPADChan");
402402
return;
403403
}
404-
if (buffer.empty() || !error || *error != VPAD_READ_SUCCESS) {
404+
if (!buffer.data() || buffer.empty() || !error || *error != VPAD_READ_SUCCESS) {
405405
DEBUG_FUNCTION_LINE_ERR("Invalid buffer or error state");
406406
return;
407407
}

0 commit comments

Comments
 (0)