java.lang.NullPointerException: Attempt to invoke interface method 'void com.codename1.media.Media.play()' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Carlos Verdier, 9 months ago
Attempt to invoke interface method 'void com.codename1.media.Media.play()' on a null object reference
java.lang.NullPointerException: Attempt to invoke interface method 'void com.codename1.media.Media.play()' on a null object reference
at userclasses.StateMachine$40.pointerReleased(StateMachine.java:5058)
at com.codename1.ui.Form.pointerReleased(Form.java:2651)
at com.codename1.ui.Component.pointerReleased(Component.java:3239)
at com.codename1.ui.Display.handleEvent(Display.java:2025)
at com.codename1.ui.Display.edtLoopImpl(Display.java:1070)
at com.codename1.ui.Display.mainEDTLoop(Display.java:999)
at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
at java.lang.Thread.run(Thread.java:761)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.