From e6e36856c6e542f7d0aa7678adf5173b9c4e0adb Mon Sep 17 00:00:00 2001 From: Jonathan Lennox Date: Fri, 17 Apr 2020 16:11:28 -0400 Subject: [PATCH] Fix format of msgType in exception message. (#201) --- .../java/org/ice4j/attribute/MessageIntegrityAttribute.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java index 9763c4b..f326315 100644 --- a/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java +++ b/src/main/java/org/ice4j/attribute/MessageIntegrityAttribute.java @@ -308,7 +308,7 @@ public class MessageIntegrityAttribute logger.warning("Can not encode a message of type Indication."); } - Objects.requireNonNull(key, "key=null; msgType=" + msgType); + Objects.requireNonNull(key, "key=null; msgType=" + String.format("%04X", (int)msgType)); //now calculate the HMAC-SHA1 this.hmacSha1Content = calculateHmacSha1(content, offset, length, key);