GautamChibde/android-audio-visualizer

prevent NullPointerException

PinkD opened this issue · 0 comments

PinkD commented

replace with

if (visualizer != null) {
    visualizer.release();
}

to prevent NullPointerException in case setPlayer is not called