java.lang.StringIndexOutOfBoundsException: String index out of range: 2

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

    Exceptions on windows disk and partition edge cases

    GitHub | 9 months ago | lundefugl
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
  2. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  3. 0
    samebug tip
    This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 51#140711361

    GitHub | 2 years ago | pbyrne84
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
  6. 0

    GitHub comment 51#140814308

    GitHub | 2 years ago | pbyrne84
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
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.StringIndexOutOfBoundsException

    String index out of range: 2

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1963)
    1 frame
  3. oshi.util
    ParseUtil.hexStringToString
    1. oshi.util.ParseUtil.hexStringToString(ParseUtil.java:296)
    1 frame
  4. oshi.hardware.platform
    WindowsHardwareAbstractionLayer.getDiskStores
    1. oshi.hardware.platform.windows.WindowsDisks.getDisks(WindowsDisks.java:84)
    2. oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer.getDiskStores(WindowsHardwareAbstractionLayer.java:70)
    2 frames
  5. Unknown
    SystemInfoTest.main
    1. SystemInfoTest.main(SystemInfoTest.java:94)
    1 frame