Skip to content

Commit

Permalink
Guard against null and inactive in UI Lag instant snap
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed May 10, 2024
1 parent 4276b8f commit dd962bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/sst/basic-blocks/dsp/Lag.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ struct UIComponentLagHandler

void instantlySnap()
{
*destination = targetValue;
if (destination)
{
*destination = targetValue;
}
active = false;
}
};
Expand Down

0 comments on commit dd962bd

Please sign in to comment.