From 6c92dd9a72ae1fa27dd061c1897531879b8c0ba6 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Wed, 4 Sep 2013 13:00:33 -0400 Subject: [PATCH] Fixes NPE in renaming auth response (triggered by SP change) --- overview.html | 1 + .../java/com/indexdata/mkjsf/pazpar2/commands/sp/AuthCommand.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/overview.html b/overview.html index 1d9b437..ccbdbf1 100644 --- a/overview.html +++ b/overview.html @@ -5,5 +5,6 @@

MKJSF is an open source library that you can include in your JavaServer Pages project to create a search interface on top of Index Data's meta-search engine Pazpar2.

+ \ No newline at end of file diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/sp/AuthCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/sp/AuthCommand.java index 8869d83..31b2d89 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/sp/AuthCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/sp/AuthCommand.java @@ -53,8 +53,8 @@ public class AuthCommand extends Pazpar2Command implements ServiceProxyCommand { * @return */ private String renameResponseElement(String responseString, String newName) { - responseString = responseString.replace("", "<" + newName + ">"); - responseString = responseString.replace("", ""); + responseString = responseString.replace("