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

Exception in thread "main" java.lang.StringIndexOutOfBoundsException #4

Open
wp2000x opened this issue Apr 4, 2023 · 0 comments
Open

Comments

@wp2000x
Copy link

wp2000x commented Apr 4, 2023

Hello, i got an exception from an warc from archive.org?


Exception in thread "main" java.lang.StringIndexOutOfBoundsException: index -1, length 0
        at java.base/java.lang.String.checkIndex(String.java:4563)
        at java.base/java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:351)
        at java.base/java.lang.StringBuilder.charAt(StringBuilder.java:91)
        at org.netpreserve.urlcanon.SemanticPreciseCanonicalizer.removeLeadingTrailingAndDuplicateChars(SemanticPreciseCanonicalizer.java:90)
        at org.netpreserve.urlcanon.AggressiveCanonicalizer.removeRedundantAmpersandsFromQuery(AggressiveCanonicalizer.java:100)
        at org.netpreserve.urlcanon.AggressiveCanonicalizer.canonicalize(AggressiveCanonicalizer.java:46)
        at org.netpreserve.warc2html.Warc2Html.makeUrlKey(Warc2Html.java:75)
        at org.netpreserve.warc2html.Warc2Html.rewriteLink(Warc2Html.java:259)
        at org.netpreserve.warc2html.Warc2Html.lambda$writeTo$0(Warc2Html.java:235)
        at org.netpreserve.warc2html.LinkRewriter.rewriteHTML(LinkRewriter.java:56)
        at org.netpreserve.warc2html.Warc2Html.writeTo(Warc2Html.java:235)
        at org.netpreserve.warc2html.Warc2Html.main(Warc2Html.java:70)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant