Merge pull request #5004 from ivan-leontiev/fix-nullptr-deref
Add condition against nullptr dereferencing to AnalyzerContainer::TogglePsychedelicColors()
This commit is contained in:
commit
509b4ccdba
@ -153,7 +153,9 @@ void AnalyzerContainer::DisableAnalyzer() {
|
||||
|
||||
void AnalyzerContainer::TogglePsychedelicColors() {
|
||||
psychedelic_colors_on_ = !psychedelic_colors_on_;
|
||||
current_analyzer_->psychedelicModeChanged(psychedelic_colors_on_);
|
||||
if (current_analyzer_) {
|
||||
current_analyzer_->psychedelicModeChanged(psychedelic_colors_on_);
|
||||
}
|
||||
SavePsychedelic();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user