When there are no keywords present (I assume), (.getKeywords info) returns nil and calling (str/split nil ...) causes an NPE. This fixes that.
stop causing NPE when no keywords are present
Tests are currently failing in Travis and there should really be a test for this. Any chance of fixing these please?
fix clojure.string namespace alias in metadata.clj
Sorry about that. I copied and pasted code with a different namespace alias for clojure.string. Should be fixed now.
Can you add a test that shows how it fixes the NPE case please?
add a test for nil keywords NPE fix
Done. I had to add an example PDF file that demonstrates the original cause. It seems camelot is designed not to generate PDFs with nil keywords, but they do occur in the wild and PDFBox will sometimes hand us nil values from .getKeywords.
The file I added for this is resources/pdf/blank.pdf and is 6KB in size. Hopefully that's an acceptable approach.
No problem. Can we get a point release soon with this fix? Thanks!
Sure. When I get home to my machine with my gpg key on I'll get a release sorted.
Just release v0.2.2.