summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:42 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:42 +0000
commit2b60deac647647d0e063966426078ca204a379cd (patch)
tree763f6650a9be9243a5100929e1dc747efb550298 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parenta387fd9a39d3556b5e49e407ea5dd48ea9b33ef7 (diff)
downloadpdf-over-2b60deac647647d0e063966426078ca204a379cd.tar.gz
pdf-over-2b60deac647647d0e063966426078ca204a379cd.tar.bz2
pdf-over-2b60deac647647d0e063966426078ca204a379cd.zip
+ fixed asign client bug!
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@306 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java12
1 files changed, 8 insertions, 4 deletions
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();
}