danbernier/WordCram — Issue #1: Exception when maxNumberOfWords > actual number of words
Author: danbernier
Created: 2011-11-06 21:16:14+00:00
State: open

May want to add the following to WordCramEngine::wordsIntoEngineWords() ~ line 69

if(words.length < maxNumberOfWords)
maxNumberOfWords = words.length;

Solves the bug where you specify a larger maxNumberOfWords parameter than the number of words that are available.

(via http://twitter.com/#!/skhanyz/status/129761090199498752)