diff options
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);
|