java-gracenote
java-gracenote copied to clipboard
Attempt to invoke interface method 'org.w3c.dom.Element org.w3c.dom.Document.getDocumentElement()' on a null object reference
This is the stack trace I'm getting:
03-10 15:55:19.015 6074-6074/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.moodtunes.moodtunes_v2, PID: 6074
java.lang.NullPointerException: Attempt to invoke interface method 'org.w3c.dom.Element org.w3c.dom.Document.getDocumentElement()' on a null object reference
at radams.gracenote.webapi.GracenoteWebAPI.register(GracenoteWebAPI.java:74)
at radams.gracenote.webapi.GracenoteWebAPI.register(GracenoteWebAPI.java:51)
at utils.GracenoteHelper.registerGraceNote(GracenoteHelper.java:37)
at utils.GracenoteHelper.initGracenote(GracenoteHelper.java:45)
at com.moodtunes.moodtunes_v2.HomeScreenActivity$CustomListener.onClick(HomeScreenActivity.java:87)
at android.view.View.performClick(View.java:5610)
at android.view.View$PerformClick.run(View.java:22260)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)