mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-27 22:05:33 -04:00
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>