Pq пре 1 година
родитељ
комит
87876854b6

+ 1 - 1
accompany/src/main/java/com/daya/orchestra/accompany/web/AccompanyFragment.java

@@ -733,7 +733,7 @@ public class AccompanyFragment extends BaseMVPFragment<FragmentAccompanyBinding,
 //                                } catch (JSONException e) {
 //                                    e.printStackTrace();
 //                                }
-                                long bufferDuration = (long) wavRecorder.getBufferDuration();
+                                long bufferDuration = wavRecorder != null ? (long) wavRecorder.getBufferDuration() : 0;
                                 long time = System.currentTimeMillis();
                                 long result = time - bufferDuration;
                                 mPlayHelper.toPlay2(result, getFirstNoteTime(message), isMuteMode(message));