Skip to content

StringIndexOutOfBoundsException #1

@TeodorKolev

Description

@TeodorKolev

On run Main: Java 1.7 and 1.8

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1911)
at com.blogspot.programmingheroes.supermariojava.loaders.Loader.(Loader.java:75)
at com.blogspot.programmingheroes.supermariojava.loaders.ImagesLoader.(ImagesLoader.java:51)
at com.blogspot.programmingheroes.supermariojava.Main.(Main.java:55)
at com.blogspot.programmingheroes.supermariojava.Main.main(Main.java:153)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions