From: INOPIAE Date: Sun, 14 Aug 2016 11:43:18 +0000 (+0200) Subject: fix: make sure that single name is accepted X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=90191743d3a44911857e25c78f226cc9f0a822b3 fix: make sure that single name is accepted Change-Id: I30dca6204f6d7d7eef12c744d3c32a83c9ef015c --- diff --git a/src/org/cacert/gigi/output/NameInput.java b/src/org/cacert/gigi/output/NameInput.java index 22eadf00..11415443 100644 --- a/src/org/cacert/gigi/output/NameInput.java +++ b/src/org/cacert/gigi/output/NameInput.java @@ -48,7 +48,7 @@ public class NameInput implements Outputable { if (name == null) { name = ""; } - if ( !"western".equals(scheme) && !"single".equals("scheme")) { + if ( !"western".equals(scheme) && !"single".equals(scheme)) { throw new GigiApiException("Invalid name type."); } if (name.contains(" ")) {