I have wordCram running as an applet and seems to work well unless I try to place more than 85 words.
Here's the main I'm using for wordcram:
https://gist.github.com/ultrapants/d6c51ed7726c63b60821And here is the html test page I'm using for the applet:
I'm getting an NPE in Animation Thread at BBTreeBuilder.makeTree - line 32.
Here's the full stack trace:
Exception in thread "Animation Thread" java.lang.NullPointerException
at wordcram.BBTreeBuilder.makeTree(BBTreeBuilder.java:32)
at wordcram.EngineWord.setShape(EngineWord.java:44)
at wordcram.WordCramEngine.wordsIntoEngineWords(WordCramEngine.java:79)
at wordcram.WordCramEngine.<init>(WordCramEngine.java:55)
at wordcram.WordCram.getWordCramEngine(WordCram.java:788)
at wordcram.WordCram.drawAll(WordCram.java:838)
at executable.Main.draw(Main.java:192)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is very curious to me, since the way I'm using wordCram works without fail for 85 or fewer words, but gets this NPE at 86 words or above. Any help would be greatly appreciated. Thanks a lot in advance!