mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-27 04:24:12 -04:00
b44ff3ee00
RadioAstronomyGUI::spectrumSeries_clicked() called calcVrAndDistanceToPeak() without verifying that currentFFT() returned a valid FFTMeasurement. Since currentFFT() can return nullptr and calcVrAndDistanceToPeak() immediately dereferences the pointer, this could result in a null pointer dereference. Guard the calls so they are only made when a valid FFT measurement is available, matching the existing pattern used elsewhere in the class. Reported by Coverity (CID 649213). Signed-off-by: Robin Getz <rgetz503@gmail.com>