summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-01-08 15:19:53 -0500
committerJames Moger <james.moger@gitblit.com>2013-01-08 15:19:53 -0500
commit1f82620a088efa2ba3254df1805e229266690673 (patch)
treebc522df019fc30b72ef935d98e9e1fc509a7f136 /src
parent7dc890057cc7f02df8f27ab988aa7055cbb3af65 (diff)
downloadgitblit-1f82620a088efa2ba3254df1805e229266690673.tar.gz
gitblit-1f82620a088efa2ba3254df1805e229266690673.zip
Catch a few other possible error scenarios in Redmine user service
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/RedmineUserService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/gitblit/RedmineUserService.java b/src/com/gitblit/RedmineUserService.java
index 504593fb..84194d5b 100644
--- a/src/com/gitblit/RedmineUserService.java
+++ b/src/com/gitblit/RedmineUserService.java
@@ -102,6 +102,11 @@ public class RedmineUserService extends GitblitUserService {
}
}
+ if (StringUtils.isEmpty(jsonString)) {
+ logger.error("Received empty authentication response from Redmine");
+ return null;
+ }
+
RedmineCurrent current = null;
try {
current = new Gson().fromJson(jsonString, RedmineCurrent.class);