java.lang.ArrayIndexOutOfBoundsException: length=0; index=0

Google Groups | Carlos Verdier | 4 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 | 4 months ago | Carlos Verdier
    java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
  2. 0

    Codename one crash during capture audio

    Stack Overflow | 11 months ago | peopletookallthegoodnames
    java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getColumnIndexOrThrow(java.lang.String)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.util.ConcurrentModificationException

    Google Groups | 3 months ago | Gareth Murfin
    java.util.ConcurrentModificationException

    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.ArrayIndexOutOfBoundsException

      length=0; index=0

      at com.codename1.impl.android.CodenameOneActivity.onRequestPermissionsResult()
    2. com.codename1.impl
      CodenameOneActivity.onRequestPermissionsResult
      1. com.codename1.impl.android.CodenameOneActivity.onRequestPermissionsResult(CodenameOneActivity.java:711)
      1 frame
    3. Android Platform
      Activity.requestPermissions
      1. android.app.Activity.requestPermissions(Activity.java:4209)
      1 frame
    4. Android Support v4
      ActivityCompat.requestPermissions
      1. android.support.v4.app.ActivityCompatApi23.requestPermissions(ActivityCompat23.java:32)
      2. android.support.v4.app.ActivityCompat.requestPermissions(ActivityCompat.java:316)
      2 frames
    5. com.codename1.impl
      AndroidImplementation.createMedia
      1. com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7869)
      2. com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7836)
      3. com.codename1.impl.android.AndroidImplementation.createMedia(AndroidImplementation.java:2722)
      3 frames
    6. com.codename1.ui
      Display.createMedia
      1. com.codename1.ui.Display.createMedia(Display.java:2983)
      1 frame
    7. com.codename1.media
      MediaManager.createMedia
      1. com.codename1.media.MediaManager.createMedia(MediaManager.java:125)
      2. com.codename1.media.MediaManager.createMedia(MediaManager.java:94)
      2 frames
    8. userclasses
      StateMachine$41$$Lambda$2.run
      1. userclasses.StateMachine$41.lambda$run$119(StateMachine.java:5415)
      2. userclasses.StateMachine$41.access$lambda$1(StateMachine.java)
      3. userclasses.StateMachine$41$$Lambda$2.run(Unknown Source)
      3 frames
    9. com.codename1.ui
      Container.replaceAndWait
      1. com.codename1.ui.Display.processSerialCalls(Display.java:1154)
      2. com.codename1.ui.Display.edtLoopImpl(Display.java:1098)
      3. com.codename1.ui.Display.invokeAndBlock(Display.java:1207)
      4. com.codename1.ui.Display.invokeAndBlock(Display.java:1244)
      5. com.codename1.ui.AnimationManager.addAnimationAndBlock(AnimationManager.java:105)
      6. com.codename1.ui.Container.replaceComponents(Container.java:869)
      7. com.codename1.ui.Container.replaceAndWait(Container.java:798)
      7 frames
    10. userclasses
      StateMachine$$Lambda$66.onSucess
      1. userclasses.StateMachine.postDescargaPaginaPubli(StateMachine.java:6035)
      2. userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:6015)
      3. userclasses.StateMachine.access$lambda$65(StateMachine.java)
      4. userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)
      4 frames
    11. com.codename1.util
      CallbackDispatcher.run
      1. com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)
      1 frame
    12. com.codename1.ui
      Display.invokeAndBlock
      1. com.codename1.ui.Display.processSerialCalls(Display.java:1154)
      2. com.codename1.ui.Display.edtLoopImpl(Display.java:1098)
      3. com.codename1.ui.Display.invokeAndBlock(Display.java:1207)
      4. com.codename1.ui.Display.invokeAndBlock(Display.java:1244)
      4 frames
    13. com.codename1.impl
      AndroidImplementation.createMedia
      1. com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7873)
      2. com.codename1.impl.android.AndroidImplementation.checkForPermission(AndroidImplementation.java:7836)
      3. com.codename1.impl.android.AndroidImplementation.createMedia(AndroidImplementation.java:2722)
      3 frames
    14. com.codename1.ui
      Display.createMedia
      1. com.codename1.ui.Display.createMedia(Display.java:2983)
      1 frame
    15. com.codename1.media
      MediaManager.createMedia
      1. com.codename1.media.MediaManager.createMedia(MediaManager.java:125)
      2. com.codename1.media.MediaManager.createMedia(MediaManager.java:94)
      2 frames
    16. userclasses
      StateMachine$41$$Lambda$2.run
      1. userclasses.StateMachine$41.lambda$run$119(StateMachine.java:5415)
      2. userclasses.StateMachine$41.access$lambda$1(StateMachine.java)
      3. userclasses.StateMachine$41$$Lambda$2.run(Unknown Source)
      3 frames
    17. com.codename1.ui
      Display.invokeAndBlock
      1. com.codename1.ui.Display.processSerialCalls(Display.java:1154)
      2. com.codename1.ui.Display.edtLoopImpl(Display.java:1098)
      3. com.codename1.ui.Display.invokeAndBlock(Display.java:1207)
      4. com.codename1.ui.Display.invokeAndBlock(Display.java:1244)
      4 frames
    18. userclasses
      StateMachine$$Lambda$66.onSucess
      1. userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:5995)
      2. userclasses.StateMachine.access$lambda$65(StateMachine.java)
      3. userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)
      3 frames
    19. com.codename1.util
      CallbackDispatcher.run
      1. com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)
      1 frame
    20. com.codename1.ui
      Container.replaceAndWait
      1. com.codename1.ui.Display.processSerialCalls(Display.java:1154)
      2. com.codename1.ui.Display.edtLoopImpl(Display.java:1098)
      3. com.codename1.ui.Display.invokeAndBlock(Display.java:1207)
      4. com.codename1.ui.Display.invokeAndBlock(Display.java:1244)
      5. com.codename1.ui.AnimationManager.addAnimationAndBlock(AnimationManager.java:105)
      6. com.codename1.ui.Container.replaceComponents(Container.java:869)
      7. com.codename1.ui.Container.replaceAndWait(Container.java:798)
      7 frames
    21. userclasses
      StateMachine$$Lambda$66.onSucess
      1. userclasses.StateMachine.postDescargaPaginaPubli(StateMachine.java:6035)
      2. userclasses.StateMachine.lambda$descargaPaginaPubli$127(StateMachine.java:6015)
      3. userclasses.StateMachine.access$lambda$65(StateMachine.java)
      4. userclasses.StateMachine$$Lambda$66.onSucess(Unknown Source)
      4 frames
    22. com.codename1.util
      CallbackDispatcher.run
      1. com.codename1.util.CallbackDispatcher.run(CallbackDispatcher.java:53)
      1 frame
    23. com.codename1.ui
      RunnableWrapper.run
      1. com.codename1.ui.Display.processSerialCalls(Display.java:1154)
      2. com.codename1.ui.Display.edtLoopImpl(Display.java:1098)
      3. com.codename1.ui.Display.mainEDTLoop(Display.java:999)
      4. com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
      4 frames
    24. com.codename1.impl
      CodenameOneThread$1.run
      1. com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
      1 frame
    25. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:761)
      1 frame