You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, the value passed to GetCategoryGroupEnabled() is never a null pointer because it’s the return value of GetCategoryGroup(). I don’t think there’s anything we need to do here?
Either way! I wasn't going to create this issue, but the defensive check on line 20 that checks for nullptr made it seem like something worth double checking. Thanks for your responses!
Activity
jasnell commentedon Apr 12, 2018
/cc @AndreasMadsen @addaleax
addaleax commentedon Apr 13, 2018
Yeah, the value passed to
GetCategoryGroupEnabled()is never a null pointer because it’s the return value ofGetCategoryGroup(). I don’t think there’s anything we need to do here?AndreasMadsen commentedon Apr 13, 2018
We could add a check that
category_groupisn'tnullptrinGetCategoryGroupEnabled.deian commentedon Apr 13, 2018
Either way! I wasn't going to create this issue, but the defensive check on line 20 that checks for nullptr made it seem like something worth double checking. Thanks for your responses!
src: add null check to GetCategoryGroupEnabled()