Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Check if callback is not null before using #1

Open
kcoul opened this issue Feb 24, 2022 · 0 comments
Open

Check if callback is not null before using #1

kcoul opened this issue Feb 24, 2022 · 0 comments

Comments

@kcoul
Copy link

kcoul commented Feb 24, 2022

Hello, this code could use callback checking to prevent crash.

For example adding if (m_callback) below:

void SidePanelList::selectedRowsChanged(int row)
{
if (row < 0)
return;

if (m_callback)
    m_callback(row);

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant