karussell/snacktory — pull request #18 by kireet (2012-08-27 16:12:31+00:00)
Title: fix exception in keyword extraction

There is an occasional ArrayIndexOutOfBoundsException that is caused by my previous pull request. This should fix it. Typical stack below.

java.lang.ArrayIndexOutOfBoundsException: 0
at de.jetwick.snacktory.ArticleTextExtractor.extractKeywords(ArticleTextExtractor.java:160) ~[snacktory-0.99.jar:na]
at de.jetwick.snacktory.ArticleTextExtractor.extractContent(ArticleTextExtractor.java:131) ~[snacktory-0.99.jar:na]
at de.jetwick.snacktory.ArticleTextExtractor.extractContent(ArticleTextExtractor.java:75) ~[snacktory-0.99.jar:na]
at de.jetwick.snacktory.ArticleTextExtractor.extractContent(ArticleTextExtractor.java:67) ~[snacktory-0.99.jar:na]
at de.jetwick.snacktory.ArticleTextExtractor.extractContent(ArticleTextExtractor.java:63) ~[snacktory-0.99.jar:na]