01-02 15:30:21.361: E/AndroidRuntime(3764): FATAL EXCEPTION: main
01-02 15:30:21.361: E/AndroidRuntime(3764): java.lang.NullPointerException
01-02 15:30:21.361: E/AndroidRuntime(3764): at com.htc.music.browserlayer.fragment.HtcMusicFragment.initLyricsView(HtcMusicFragment.java:8905)
01-02 15:30:21.361: E/AndroidRuntime(3764): at com.htc.music.browserlayer.fragment.HtcMusicFragment.initialUI(HtcMusicFragment.java:2305)
01-02 15:30:21.361: E/AndroidRuntime(3764): at com.htc.music.browserlayer.fragment.HtcMusicFragment.onCreateView(HtcMusicFragment.java:662)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.BackStackRecord.run(BackStackRecord.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.FragmentManagerImpl$1.run(FragmentManager.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.os.Handler.handleCallback(Handler.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.os.Handler.dispatchMessage(Handler.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.os.Looper.loop(Looper.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at android.app.ActivityThread.main(ActivityThread.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at java.lang.reflect.Method.invokeNative(Native Method)
01-02 15:30:21.361: E/AndroidRuntime(3764): at java.lang.reflect.Method.invoke(Method.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
01-02 15:30:21.361: E/AndroidRuntime(3764): at dalvik.system.NativeStart.main(Native Method)
01-02 15:30:21.541: E/EmbeddedLogger(2496): App crashed! Process: com.htc.music
01-02 15:30:21.541: E/EmbeddedLogger(2496): App crashed! Package: com.htc.music v522301810 (5.1.2320352112.658919.648253)
01-02 15:30:22.081: E/EmbeddedLogger(2496): Application Label: Music
J'ouvre l'application Musique dans Android mais elle se ferme de force. J'ai pris logcat et trouvé ce problème causant.
A la ligne 8905, voici le code :
> if-eqz v11, :cond_1
>
> const-string v11, "[HtcMusicFragment]"
>
> const-string v12, "onServiceConnectedHandle, mActivity is null