flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

java.lang.NullPointerException in public void onStart() of UtteranceProgressListener

Open ostpnk opened this issue 2 years ago • 0 comments

🐛 Bug Report

In (https://github.com/dlutton/flutter_tts/blob/3af42c523595176bf8475ae21865dd80a79c4bde/android/src/main/java/com/tundralabs/fluttertts/FlutterTtsPlugin.java) line 95 : this.onProgress(utteranceId, 0, utterances.get(utteranceId).length()); causes java.lang.NullPointerException after calling synthesizeToFile(..), because variable utterances only updated in method speak(..) - line 545

[<!--- Summary description of the bug --->]

Expected behavior

Reproduction steps

Configuration

Version: 0.1.x

Platform:

  • [ ] :iphone: iOS
  • [x] :robot: Android

ostpnk avatar Jan 07 '22 09:01 ostpnk