MER-C/wiki-java

getTemplates() throws StringIndexOutOfBoundsException when there are no templates on a page

Closed this issue · 1 comments

Stack trace:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String 
index out of range: -1
    at java.lang.String.substring(String.java:1931)
    at java.lang.String.substring(String.java:1904)
    at org.wikipedia.Wiki.getTemplates(Wiki.java:2039)
    at org.daily.DRArchive.main(DRArchive.java:34)

Might be something worth looking into.

Original issue reported on code.google.com by alec.b...@gmail.com on 6 Apr 2013 at 8:36

This issue was closed by revision r136.

Original comment by stop.squark on 8 Apr 2013 at 12:56

  • Changed state: Fixed