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

GitHub | RomHartmann | 3 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

    StringIndexOutOfBounds

    GitHub | 8 months ago | FroMage
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 0

    GitHub comment 157#249743933

    GitHub | 7 months ago | stevemessick
    java.lang.IllegalArgumentException: Unknown macro $APP_CONFIG$
  3. 0

    exception at startup; symptom is we lose the flutter sdk setting

    GitHub | 7 months ago | devoncarew
    java.lang.IllegalArgumentException: Unknown macro $APP_CONFIG$
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to save settings. Failed to save settings, Please restart Intellij IDEA

    GitHub | 1 year ago | coderplay
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    Problem with Kobalt plugin after initializing a new project

    GitHub | 11 months ago | RandyKahle
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0

  1. linxiaolong 1 times, last 2 months ago
  2. jokester 1 times, last 2 months ago
  3. tyson925 1 times, last 3 months ago
  4. Torasque 1 times, last 4 months ago
  5. Hronom 32257 times, last 4 months ago
11 more registered users
18 unregistered visitors
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: 0

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:658)
    1 frame
  3. com.intellij.configurationStore
    ComponentStoreImpl.initComponent
    1. com.intellij.configurationStore.ApplicationStorageManager.expandMacros(ApplicationStoreImpl.kt:108)
    2. com.intellij.configurationStore.StateStorageManagerImpl.createStateStorage(StateStorageManagerImpl.kt:194)
    3. com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage(StateStorageManagerImpl.kt:150)
    4. com.intellij.configurationStore.StateStorageManagerImpl.getStateStorage(StateStorageManagerImpl.kt:133)
    5. com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:269)
    6. com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:90)
    6 frames
  4. IDEA
    ServiceManagerImpl$MyComponentAdapter.getComponentInstance
    1. com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:54)
    2. com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:237)
    2 frames
  5. Openapi
    DefaultPicoContainer.getComponentInstance
    1. com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:246)
    2. com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:212)
    2 frames
  6. IDEA
    ServiceManager.getService
    1. com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:46)
    2. com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:37)
    2 frames
  7. org.intellij.plugins
    SplitTextEditorProvider$1.build
    1. org.intellij.plugins.markdown.settings.MarkdownApplicationSettings.getInstance(MarkdownApplicationSettings.java:39)
    2. org.intellij.plugins.markdown.ui.preview.MarkdownPreviewFileEditor.<init>(MarkdownPreviewFileEditor.java:96)
    3. org.intellij.plugins.markdown.ui.preview.MarkdownPreviewFileEditorProvider.createEditor(MarkdownPreviewFileEditorProvider.java:23)
    4. org.intellij.plugins.markdown.ui.split.SplitTextEditorProvider$2.build(SplitTextEditorProvider.java:139)
    5. org.intellij.plugins.markdown.ui.split.SplitTextEditorProvider$1.build(SplitTextEditorProvider.java:64)
    5 frames
  8. IDEA
    FileEditorManagerImpl.openEditor
    1. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$13.run(FileEditorManagerImpl.java:873)
    2. com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2382)
    3. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:855)
    4. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:789)
    5. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10.run(FileEditorManagerImpl.java:769)
    6. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:117)
    7. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
    8. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
    9. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:766)
    10. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:707)
    11. com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:151)
    12. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$16.run(FileEditorManagerImpl.java:1143)
    13. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
    14. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
    15. com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
    16. com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:1139)
    16 frames
  9. Openapi
    OpenFileDescriptor.navigate
    1. com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInAnyFileEditor(OpenFileDescriptor.java:146)
    2. com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInEditor(OpenFileDescriptor.java:132)
    3. com.intellij.openapi.fileEditor.OpenFileDescriptor.navigateInEditorOrNativeApp(OpenFileDescriptor.java:128)
    4. com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:115)
    4 frames
  10. IDEA
    ClickListener$1.mouseReleased
    1. com.intellij.psi.impl.source.PsiFileImpl.navigate(PsiFileImpl.java:958)
    2. com.intellij.codeInsight.navigation.NavigationUtil.openFileWithPsiElement(NavigationUtil.java:179)
    3. com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:207)
    4. com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:217)
    5. com.intellij.ide.projectView.impl.nodes.PsiFileNode.navigate(PsiFileNode.java:132)
    6. com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:53)
    7. com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:31)
    8. com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.processDoubleClick(EditSourceOnDoubleClickHandler.java:130)
    9. com.intellij.util.EditSourceOnDoubleClickHandler$TreeMouseListener.onDoubleClick(EditSourceOnDoubleClickHandler.java:122)
    10. com.intellij.ui.DoubleClickListener.onClick(DoubleClickListener.java:30)
    11. com.intellij.ui.ClickListener$1.mouseReleased(ClickListener.java:73)
    11 frames
  11. Java RT
    JComponent.processMouseEvent
    1. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    2. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    3. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    4. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    5. java.awt.Component.processMouseEvent(Component.java:6533)
    6. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    6 frames
  12. Openapi
    Tree.processMouseEvent
    1. com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:410)
    1 frame
  13. IDEA
    DnDAwareTree.processMouseEvent
    1. com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:58)
    1 frame
  14. Java RT
    EventQueue.dispatchEvent
    1. java.awt.Component.processEvent(Component.java:6298)
    2. java.awt.Container.processEvent(Container.java:2236)
    3. java.awt.Component.dispatchEventImpl(Component.java:4889)
    4. java.awt.Container.dispatchEventImpl(Container.java:2294)
    5. java.awt.Component.dispatchEvent(Component.java:4711)
    6. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    7. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    8. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    9. java.awt.Container.dispatchEventImpl(Container.java:2280)
    10. java.awt.Window.dispatchEventImpl(Window.java:2746)
    11. java.awt.Component.dispatchEvent(Component.java:4711)
    12. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    13. java.awt.EventQueue.access$500(EventQueue.java:97)
    14. java.awt.EventQueue$3.run(EventQueue.java:709)
    15. java.awt.EventQueue$3.run(EventQueue.java:703)
    16. java.security.AccessController.doPrivileged(Native Method)
    17. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    18. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    19. java.awt.EventQueue$4.run(EventQueue.java:731)
    20. java.awt.EventQueue$4.run(EventQueue.java:729)
    21. java.security.AccessController.doPrivileged(Native Method)
    22. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    23. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    23 frames
  15. IDEA
    IdeEventQueue.dispatchEvent
    1. com.intellij.ide.IdeEventQueue.h(IdeEventQueue.java:866)
    2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
    3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
    3 frames
  16. Java RT
    EventDispatchThread.run
    1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    6 frames