forked from External/mage
Fixed some possible exceptions.
This commit is contained in:
parent
e936f7dc0f
commit
d2eb6151f1
20 changed files with 133 additions and 132 deletions
|
|
@ -188,11 +188,10 @@ public class UserManager {
|
|||
|
||||
public void handleException(Exception ex) {
|
||||
if (ex != null) {
|
||||
LOGGER.fatal("User manager exception " + (ex.getMessage() == null ? "null" : ex.getMessage()));
|
||||
if (ex.getCause() != null) {
|
||||
LOGGER.debug("- Cause: " + (ex.getCause().getMessage() == null ? "null" : ex.getCause().getMessage()));
|
||||
LOGGER.fatal("User manager exception ", ex);
|
||||
if (ex.getStackTrace() != null) {
|
||||
LOGGER.fatal(ex.getStackTrace());
|
||||
}
|
||||
ex.printStackTrace();
|
||||
} else {
|
||||
LOGGER.fatal("User manager exception - null");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue