CrossRef / pdfextract

MOVED TO https://gitlab.com/crossref/pdfextract
https://gitlab.com/crossref/pdfextract
MIT License
508 stars 89 forks source link

Fixing undefined method [] for nil:NilClass error #29

Closed jgrossi closed 8 years ago

jgrossi commented 9 years ago

When extracting some PDF papers you can get the error: undefined method []' for nil:NilClass error on lib/analysis/titles.rb file on line 30. The fix is to verify before if there is some title inside titles variable before check.