Skip to content

Commit

Permalink
Handle a null case in the makeHover branch
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Nov 15, 2021
1 parent a6e90d0 commit e793e93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/surge-xt/gui/SurgeJUCEHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ template <typename T> inline std::function<void(int)> makeEndHoverCallback(T *th
template <>
inline std::function<void(int)> makeEndHoverCallback(Surge::GUI::IComponentTagValue *that)
{
if (!that)
return [](int) {};

return
[safethat = juce::Component::SafePointer<juce::Component>(that->asJuceComponent())](int x) {
if (safethat)
Expand Down

0 comments on commit e793e93

Please sign in to comment.