summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-11-14 10:24:47 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-11-14 10:25:19 +0100
commit6b1f90892a90e34d2a0274b82ab88937e222670b (patch)
tree3c61b5a77904719312a890a6f67ff06c60e0066b /trunk/pdf-over-gui/src/main/java
parentec8fc4bc5fccdda812ec9fbab24b154f6e687dbf (diff)
downloadpdf-over-6b1f90892a90e34d2a0274b82ab88937e222670b.tar.gz
pdf-over-6b1f90892a90e34d2a0274b82ab88937e222670b.tar.bz2
pdf-over-6b1f90892a90e34d2a0274b82ab88937e222670b.zip
+ fixed asign client bug!
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java
index 78310925..84b318e0 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/LocalBKUState.java
+++ b/trunk/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();
}