Skip to content

Commit

Permalink
#1519 Adds null checking to channel results array to detect null on t…
Browse files Browse the repository at this point in the history
…uner shutdown. (#1520)

Co-authored-by: Dennis Sheirer <dsheirer@github.com>
  • Loading branch information
DSheirer and Dennis Sheirer authored Apr 13, 2023
1 parent 59e74d7 commit df3d3b5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,12 @@ public IFFTProcessorDispatcher(int batchSize, long interval)

for(float[] channelResults: list)
{
//Rotate each of the channels to the correct phase using the IFFT
mFFT.complexInverse(channelResults, true);
processedChannelResults.add(channelResults);
if(channelResults != null)
{
//Rotate each of the channels to the correct phase using the IFFT
mFFT.complexInverse(channelResults, true);
processedChannelResults.add(channelResults);
}
}

dispatch(processedChannelResults);
Expand Down

0 comments on commit df3d3b5

Please sign in to comment.