diff options
author | James Moger <james.moger@gitblit.com> | 2013-01-08 15:19:53 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-01-08 15:19:53 -0500 |
commit | 1f82620a088efa2ba3254df1805e229266690673 (patch) | |
tree | bc522df019fc30b72ef935d98e9e1fc509a7f136 /src | |
parent | 7dc890057cc7f02df8f27ab988aa7055cbb3af65 (diff) | |
download | gitblit-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.java | 5 |
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);
|