Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException #1413

Closed
kettle256 opened this issue Dec 4, 2024 · 0 comments · Fixed by #1415
Closed

StringIndexOutOfBoundsException #1413

kettle256 opened this issue Dec 4, 2024 · 0 comments · Fixed by #1415
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kettle256
Copy link

kettle256 commented Dec 4, 2024

  1. Did git rebase, had some merge conflicts in src/main/resources/application.properties file.
  2. Resolved them using IDEA's "Resolve Conflicts" UI.
  3. Right after clicking "Apply", saw the error notification.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
	at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
	at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
	at java.base/java.lang.String.checkIndex(String.java:4832)
	at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:46)
	at java.base/java.lang.String.charAt(String.java:1555)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.MicroProfileConfigPropertyInformation.getPropertyNameWithoutProfile(MicroProfileConfigPropertyInformation.java:132)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PropertiesConfigSource.lambda$loadPropertyInformations$1(PropertiesConfigSource.java:89)
	at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
	at java.base/java.util.Properties.forEach(Properties.java:1467)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PropertiesConfigSource.loadPropertyInformations(PropertiesConfigSource.java:83)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.AbstractConfigSource.init(AbstractConfigSource.java:84)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.AbstractConfigSource.<init>(AbstractConfigSource.java:78)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.AbstractConfigSource.<init>(AbstractConfigSource.java:56)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PropertiesConfigSource.<init>(PropertiesConfigSource.java:46)
	at com.redhat.devtools.intellij.quarkus.psi.internal.providers.QuarkusConfigSourceProvider.createConfigSource(QuarkusConfigSourceProvider.java:71)
	at com.redhat.devtools.intellij.quarkus.psi.internal.providers.QuarkusConfigSourceProvider.getConfigSources(QuarkusConfigSourceProvider.java:58)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PsiMicroProfileProject.loadConfigSources(PsiMicroProfileProject.java:246)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PsiMicroProfileProject.getConfigSources(PsiMicroProfileProject.java:185)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PsiMicroProfileProject.findConfigSource(PsiMicroProfileProject.java:221)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PsiMicroProfileProject.evictConfigSourcesCache(PsiMicroProfileProject.java:195)
	at com.redhat.devtools.intellij.lsp4mp4ij.psi.core.project.PsiMicroProfileProjectManager$MicroProfileProjectListener.sourceFilesChanged(PsiMicroProfileProjectManager.java:66)
	at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:768)
	at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:712)
	at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:451)
	at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:430)
	at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1)
	at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:493)
	at jdk.proxy20/jdk.proxy20.$Proxy321.sourceFilesChanged(Unknown Source)
	at com.redhat.devtools.intellij.lsp4mp4ij.classpath.ClasspathResourceChangedNotifier.notifyChanges(ClasspathResourceChangedNotifier.java:110)
	at com.redhat.devtools.intellij.lsp4mp4ij.classpath.ClasspathResourceChangedNotifier$1.run(ClasspathResourceChangedNotifier.java:88)
	at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
	at java.base/java.util.TimerThread.run(Timer.java:516)
@angelozerr angelozerr added the bug Something isn't working label Dec 6, 2024
angelozerr added a commit to angelozerr/intellij-quarkus that referenced this issue Dec 6, 2024
@angelozerr angelozerr self-assigned this Dec 6, 2024
@angelozerr angelozerr added this to the 2.1.0 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants