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

Google Groups | Carlos Verdier | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    android.permission.READ_PHONE_STATE

    Google Groups | 5 months ago | Carlos Verdier
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.codename1.media.Media.play()' on a null object reference
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Problem with LeadComponent when the leading component is a TextField.

    GitHub | 2 years ago | codenameone
    java.lang.ClassCastException: com.codename1.ui.Container cannot be cast to com.codename1.ui.TextArea

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

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

      at userclasses.StateMachine$40.pointerReleased()
    2. userclasses
      StateMachine$40.pointerReleased
      1. userclasses.StateMachine$40.pointerReleased(StateMachine.java:5058)
      1 frame
    3. com.codename1.ui
      RunnableWrapper.run
      1. com.codename1.ui.Form.pointerReleased(Form.java:2651)
      2. com.codename1.ui.Component.pointerReleased(Component.java:3239)
      3. com.codename1.ui.Display.handleEvent(Display.java:2025)
      4. com.codename1.ui.Display.edtLoopImpl(Display.java:1070)
      5. com.codename1.ui.Display.mainEDTLoop(Display.java:999)
      6. com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
      6 frames
    4. com.codename1.impl
      CodenameOneThread$1.run
      1. com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
      1 frame
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:761)
      1 frame