java.lang.StringIndexOutOfBoundsException: String index out of range: -13

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via QOS.ch JIRA by Stuart Douglas, 1 year ago
String index out of range: -1
via QOS.ch JIRA by Stuart Douglas, 1 year ago
String index out of range: -1
via Sonatype JIRA by Tamás Cservenák, 1 year ago
String index out of range: -6
via Sonatype JIRA by Tamás Cservenák, 1 year ago
String index out of range: -6
java.lang.StringIndexOutOfBoundsException: String index out of range: -13
at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:908)
at java.lang.StringBuilder.substring(StringBuilder.java:76)
at io.github.hsyyid.essentialcmds.listeners.MessageSinkListener.onMessage(MessageSinkListener.java:197)
at org.spongepowered.common.event.listener.ChatListener_MessageSinkListener_onMessage41.handle(Unknown Source)
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:210)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:157)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:89)
at net.minecraft.network.NetHandlerPlayServer.handler$injectChatEvent$0(NetHandlerPlayServer.java:78)
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:799)
at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37)
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:119)
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:44)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:660)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.