Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11655

Plugin Media :app crashed when a telephone call come in if app is playing mp3.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • None
    • cordova-plugin-media
    • None
    • android 4.4/6.0.1,cordova 6.2.0

    • Important

    Description

      app crashed when a telephone call come in if app is playing mp3.

      following lines are exception info in logcat :

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: FATAL EXCEPTION: main

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: Process: com.sin360.icolor, PID: 23393

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent

      { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) }

      in org.apache.cordova.CoreAndroid$5@ea96372

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:934)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:815)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:104)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.os.Looper.loop(Looper.java:207)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5701)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: Caused by: java.lang.NullPointerException: rhs == null

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at java.lang.String.compareTo(Native Method)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at org.apache.cordova.media.AudioPlayer.readyPlayer(AudioPlayer.java:492)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at org.apache.cordova.media.AudioPlayer.startPlaying(AudioPlayer.java:217)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at org.apache.cordova.media.AudioHandler.onMessage(AudioHandler.java:199)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at org.apache.cordova.PluginManager.postMessage(PluginManager.java:312)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at org.apache.cordova.CoreAndroid$5.onReceive(CoreAndroid.java:298)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:924)

      07-30 16:53:39.932 23393 23393 E AndroidRuntime: ... 7 more

      Attachments

        Issue Links

          Activity

            People

              alsorokin Alexander Sorokin
              leitz lei
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: