diff --git a/target_if/spectral/target_if_spectral.h b/target_if/spectral/target_if_spectral.h index 1ff8609ee436..3add3240564c 100644 --- a/target_if/spectral/target_if_spectral.h +++ b/target_if/spectral/target_if_spectral.h @@ -1732,6 +1732,10 @@ void target_if_spectral_process_phyerr( } p_sops = GET_TARGET_IF_SPECTRAL_OPS(spectral); + if (!p_sops->spectral_process_phyerr) { + spectral_err("null spectral_process_phyerr"); + return; + } p_sops->spectral_process_phyerr(spectral, data, datalen, p_rfqual, p_chaninfo, tsf64, acs_stats);