Menu

#1240 Error regarding length of string

v2.10
closed
nobody
None
5
2014-11-03
2014-09-04
No

Since v2.10 does not accept strings with a length of one character.
Is this right? Also JabRef report an error, if I try to load a bib-file containing such a "@STRING" command with one character.

Discussion

  • Jellby

    Jellby - 2014-09-16

    It's not only loading, but also creating. To reproduce:

    File -> New database
    BibTeX -> Edit strings
    + (New string)
    type one letter ("B" for instance)
    OK

    No string is created and the console output says:

    Exception in thread "AWT-EventQueue-0" kava.lang.StringIndexOutOfBoundsException: String index out of range: 1
            at java.lang.String.charAt(String.java:658)
            at net.sf.jabref.BibtexString$Type.get(BibtexString.java:73)
            at net.sf.jabref.BibtexString.<init>(BibtexString.java:91)
            at net.sf.jabref.StringDialog$NewStringAction.actionPerformed(StringDialog.java:386)
    ...
    

    this is at least with v2.10b2

     

    Last edit: Jellby 2014-09-16
  • Igor

    Igor - 2014-11-03

    Fixed and merged. Pull request #29
    https://github.com/JabRef/jabref/pull/29

     
  • Igor

    Igor - 2014-11-03
    • status: open --> closed
     

Log in to post a comment.