diff --git a/jhove-apps/src/main/java/edu/harvard/hul/ois/jhove/viewer/RepTreeRoot.java b/jhove-apps/src/main/java/edu/harvard/hul/ois/jhove/viewer/RepTreeRoot.java index c3bbc9900..504dea7d2 100644 --- a/jhove-apps/src/main/java/edu/harvard/hul/ois/jhove/viewer/RepTreeRoot.java +++ b/jhove-apps/src/main/java/edu/harvard/hul/ois/jhove/viewer/RepTreeRoot.java @@ -485,8 +485,16 @@ private void addArrayMembers(DefaultMutableTreeNode node, Property p) { break; } case BYTE: { - addToNode(node, (Byte[]) pVal); - break; + if (pVal instanceof byte[]) { + byte[] byteArray = (byte[]) pVal; + Byte[] byteObjectArray = new Byte[byteArray.length]; + for (int i = 0; i < byteArray.length; i++) { + byteObjectArray[i] = byteArray[i]; // Autoboxing from byte to Byte + } + addToNode(node, (Byte[]) byteObjectArray); + } else { + addToNode(node, (Byte[]) pVal); + } } case STRING: { addToNode(node, (String[]) pVal);