From 2b60deac647647d0e063966426078ca204a379cd Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:24:42 +0000 Subject: + fixed asign client bug! git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@306 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/workflow/states/LocalBKUState.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pdf-over-gui/src/main/java/at') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java index 78310925..84b318e0 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java @@ -95,20 +95,24 @@ public class LocalBKUState extends State { if (returnCode == HttpStatus.SC_OK) { String server = ""; //$NON-NLS-1$ String userAgent = ""; //$NON-NLS-1$ - String signatureLayout = ""; //$NON-NLS-1$ + String signatureLayout = null; //$NON-NLS-1$ - if (method.getResponseHeader(BKU_REPSONE_HEADER_SERVER) != null) { + if (method.getResponseHeader(BKU_REPSONE_HEADER_SERVER) != null&& + !method.getResponseHeader(BKU_REPSONE_HEADER_SERVER).equals("")) { //$NON-NLS-1$ server = method.getResponseHeader( BKU_REPSONE_HEADER_SERVER).getValue(); } - if (method.getResponseHeader(BKU_REPSONE_HEADER_USERAGENT) != null) { + if (method.getResponseHeader(BKU_REPSONE_HEADER_USERAGENT) != null && + !method.getResponseHeader(BKU_REPSONE_HEADER_USERAGENT).equals("")) { //$NON-NLS-1$ userAgent = method.getResponseHeader( BKU_REPSONE_HEADER_USERAGENT).getValue(); } if (method - .getResponseHeader(BKU_REPSONE_HEADER_SIGNATURE_LAYOUT) != null) { + .getResponseHeader(BKU_REPSONE_HEADER_SIGNATURE_LAYOUT) != null && + !method + .getResponseHeader(BKU_REPSONE_HEADER_SIGNATURE_LAYOUT).equals("")) { //$NON-NLS-1$ signatureLayout = method.getResponseHeader( BKU_REPSONE_HEADER_SIGNATURE_LAYOUT).getValue(); } -- cgit v1.2.3