From dcd782940e7ba1c355f824fa07f09adb2df9042c Mon Sep 17 00:00:00 2001 From: 1160300420 <906135558@qq.com> Date: Sun, 22 Jul 2018 18:21:35 +0800 Subject: [PATCH] change change --- .../org/jabref/logic/bibtexkeypattern/BracketedPattern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java b/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java index e245e5b4431..e993f7db30c 100644 --- a/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java +++ b/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java @@ -570,7 +570,7 @@ public static String firstAuthor(String authorField) { if (authorList.isEmpty()) { return ""; } - if (authorList.getAuthor(0).getVon().toString().equals("Optional.empty")) { + if (!authorList.getAuthor(0).getVon().isPresent()) { Character.UnicodeBlock ub = Character.UnicodeBlock.of(authorList.getAuthor(0).getLast().orElse("").charAt(0)); if ((ub == Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS) || (ub == Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS)