Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException thrown on start release build #27

Closed
BeMacized opened this issue Jan 6, 2019 · 3 comments
Closed

NullPointerException thrown on start release build #27

BeMacized opened this issue Jan 6, 2019 · 3 comments
Assignees

Comments

@BeMacized
Copy link
Contributor

When launching a release APK with this plugin, the app crashes on start.
It works fine when debugging normally with Android Studio & IntelliJ.
This too happens to the example app included.

Steps to reproduce:

  1. flutter build apk --release
  2. flutter install
  3. Launch the app

The following exception is thrown:

01-06 01:39:35.691 21844 21844 D AndroidRuntime: Shutting down VM
01-06 01:39:25.272 21788 21788 E AndroidRuntime: FATAL EXCEPTION: main
01-06 01:39:25.272 21788 21788 E AndroidRuntime: Process: com.ryanheise.audioserviceexample, PID: 21788
01-06 01:39:25.272 21788 21788 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.MethodChannel$Result.success(java.lang.Object)' on a null object reference
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at com.ryanheise.audioservice.AudioServicePlugin$ClientHandler.sendConnectResult(AudioServicePlugin.java:148)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at com.ryanheise.audioservice.AudioServicePlugin$ClientHandler.access$500(AudioServicePlugin.java:69)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at com.ryanheise.audioservice.AudioServicePlugin$ClientHandler$3.onConnected(AudioServicePlugin.java:122)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.support.v4.media.MediaBrowserCompat$ConnectionCallback$StubApi21.onConnected(MediaBrowserCompat.java:651)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.support.v4.media.MediaBrowserCompatApi21$ConnectionCallbackProxy.onConnected(MediaBrowserCompatApi21.java:102)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.media.browse.MediaBrowser$6.run(MediaBrowser.java:603)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:873)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:193)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6863)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
01-06 01:39:25.272 21788 21788 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
@ryanheise
Copy link
Owner

This has been fixed in the git version and will publish later today.

@ryanheise
Copy link
Owner

Included in Release 0.0.14.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants