java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

GitHub | KenC57 | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Can't create new Xbee connection

    GitHub | 8 months ago | KenC57
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

    Index: 0, Size: 0

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(Unknown Source)
    2. java.util.ArrayList.get(Unknown Source)
    2 frames
  3. jmri.jmrix.ieee802154
    ConnectionConfig.loadDetails
    1. jmri.jmrix.ieee802154.swing.nodeconfig.NodeConfigAction.<init>(NodeConfigAction.java:29)
    2. jmri.jmrix.ieee802154.xbee.swing.nodeconfig.NodeConfigAction.<init>(NodeConfigAction.java:23)
    3. jmri.jmrix.ieee802154.xbee.swing.nodeconfig.NodeConfigAction.<init>(NodeConfigAction.java:40)
    4. jmri.jmrix.ieee802154.xbee.ConnectionConfig.loadDetails(ConnectionConfig.java:35)
    4 frames
  4. jmri.jmrix
    JmrixConfigPane.lambda$1
    1. jmri.jmrix.JmrixConfigPane.selection(JmrixConfigPane.java:330)
    2. jmri.jmrix.JmrixConfigPane.lambda$1(JmrixConfigPane.java:258)
    2 frames
  5. Java RT
    JComboBox.setSelectedItem
    1. javax.swing.JComboBox.fireActionEvent(Unknown Source)
    2. javax.swing.JComboBox.setSelectedItem(Unknown Source)
    2 frames
  6. jmri.jmrix
    JmrixConfigPane.lambda$0
    1. jmri.jmrix.JmrixConfigPane.updateComboConnection(JmrixConfigPane.java:310)
    2. jmri.jmrix.JmrixConfigPane.lambda$0(JmrixConfigPane.java:210)
    2 frames
  7. Java RT
    EventDispatchThread.run
    1. javax.swing.JComboBox.fireActionEvent(Unknown Source)
    2. javax.swing.JComboBox.setSelectedItem(Unknown Source)
    3. javax.swing.JComboBox.setSelectedIndex(Unknown Source)
    4. javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
    5. java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    6. java.awt.Component.processMouseEvent(Unknown Source)
    7. javax.swing.JComponent.processMouseEvent(Unknown Source)
    8. javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
    9. java.awt.Component.processEvent(Unknown Source)
    10. java.awt.Container.processEvent(Unknown Source)
    11. java.awt.Component.dispatchEventImpl(Unknown Source)
    12. java.awt.Container.dispatchEventImpl(Unknown Source)
    13. java.awt.Component.dispatchEvent(Unknown Source)
    14. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    15. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    16. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    17. java.awt.Container.dispatchEventImpl(Unknown Source)
    18. java.awt.Window.dispatchEventImpl(Unknown Source)
    19. java.awt.Component.dispatchEvent(Unknown Source)
    20. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    21. java.awt.EventQueue.access$500(Unknown Source)
    22. java.awt.EventQueue$3.run(Unknown Source)
    23. java.awt.EventQueue$3.run(Unknown Source)
    24. java.security.AccessController.doPrivileged(Native Method)
    25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    26. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    27. java.awt.EventQueue$4.run(Unknown Source)
    28. java.awt.EventQueue$4.run(Unknown Source)
    29. java.security.AccessController.doPrivileged(Native Method)
    30. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    31. java.awt.EventQueue.dispatchEvent(Unknown Source)
    32. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    33. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    34. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    36. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    37. java.awt.EventDispatchThread.run(Unknown Source)
    37 frames