This commit is contained in:
Gary Gregory 2022-11-04 16:21:54 -04:00
parent b01d56ddea
commit 8d6e743748

View File

@ -238,9 +238,8 @@ public static Throwable getRootCause(final Throwable throwable) {
* @since 2.2
*/
public static String getRootCauseMessage(final Throwable throwable) {
Throwable root = getRootCause(throwable);
root = root == null ? throwable : root;
return getMessage(root);
final Throwable root = getRootCause(throwable);
return getMessage(root == null ? throwable : root);
}
/**