Skip to content

Commit df3d3b5

Browse files
DSheirerDennis Sheirer
andauthored
DSheirer#1519 Adds null checking to channel results array to detect null on tuner shutdown. (DSheirer#1520)
Co-authored-by: Dennis Sheirer <[email protected]>
1 parent 59e74d7 commit df3d3b5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/io/github/dsheirer/dsp/filter/channelizer/ComplexPolyphaseChannelizerM2.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,12 @@ public IFFTProcessorDispatcher(int batchSize, long interval)
421421

422422
for(float[] channelResults: list)
423423
{
424-
//Rotate each of the channels to the correct phase using the IFFT
425-
mFFT.complexInverse(channelResults, true);
426-
processedChannelResults.add(channelResults);
424+
if(channelResults != null)
425+
{
426+
//Rotate each of the channels to the correct phase using the IFFT
427+
mFFT.complexInverse(channelResults, true);
428+
processedChannelResults.add(channelResults);
429+
}
427430
}
428431

429432
dispatch(processedChannelResults);

0 commit comments

Comments
 (0)