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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • android.permission.READ_PHONE_STATE
    via by Carlos Verdier,
    • 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)
    No Bugmate found.