fix log trace message throwing exception

This commit is contained in:
Andy Taylor 2017-01-09 17:32:44 +00:00 committed by Clebert Suconic
parent 57de21875a
commit 355d33ea4f
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ public class ProtonHandler extends ProtonInitializable {
serverSasl.recv(dataSASL, 0, dataSASL.length);
if (log.isTraceEnabled()) {
log.trace("Working on sasl::" + ByteUtil.bytesToHex(dataSASL, 2));
log.trace("Working on sasl::" + (dataSASL != null && dataSASL.length > 0 ? ByteUtil.bytesToHex(dataSASL, 2) : "Anonymous"));
}
saslResult = mechanism.processSASL(dataSASL);