org-bibtex: Fix `org-bibtex-read' on an empty field
commit2e72176e211604e364f1a3ec8620b83b99e6e50e
authorStefan-W. Hahn <stefan.hahn@s-hahn.de>
Fri, 21 Feb 2014 16:19:39 +0000 (21 17:19 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 24 Feb 2014 16:32:14 +0000 (24 17:32 +0100)
tree51d59c805c99ddc801eda5bbdb469e225d1bb6c0
parent4298a21b825efb58ed069693f453c962d309110a
org-bibtex: Fix `org-bibtex-read' on an empty field

* lisp/org-bibtex.el (org-bibtex-read): Check string length before
  using aref.

If a field in a bibtex entry is empty:

@article(test,
   description = "")

the function org-bibtex-read throws an exception because of
using aref on this empty string.

The solution is to check the length of the string before.

TINYCHANGE

Signed-off-by: Stefan-W. Hahn <stefan.hahn@s-hahn.de>
lisp/org-bibtex.el