Skip to content

Commit

Permalink
stop causing NPE when no keywords are present
Browse files Browse the repository at this point in the history
  • Loading branch information
cap10morgan committed Oct 1, 2013
1 parent d58ba74 commit 50dea91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/camelot/metadata.clj
Expand Up @@ -12,7 +12,9 @@
{:author (.getAuthor info)
:title (.getTitle info)
:subject (.getSubject info)
:keywords (str/split (.getKeywords info) #", ")
:keywords (if-let [keywords (.getKeywords info)]
(string/split keywords #", ")
[])
:trapped (.getTrapped info)
:creator (.getCreator info)
:pages (.getNumberOfPages doc)
Expand Down

0 comments on commit 50dea91

Please sign in to comment.