Browse Source

Catch a few other possible error scenarios in Redmine user service

tags/v1.2.1
James Moger 11 years ago
parent
commit
1f82620a08
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/com/gitblit/RedmineUserService.java

+ 5
- 0
src/com/gitblit/RedmineUserService.java View File

@@ -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);

Loading…
Cancel
Save