mirror of https://github.com/apache/poi.git
Allow dumping of null arrays
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a55a386f1
commit
cc9d459c30
|
@ -253,12 +253,15 @@ public class HexDump {
|
|||
{
|
||||
StringBuffer retVal = new StringBuffer();
|
||||
retVal.append('[');
|
||||
for(int x = 0; x < value.length; x++)
|
||||
if (value != null && value.length > 0)
|
||||
{
|
||||
if (x>0) {
|
||||
retVal.append(", ");
|
||||
for(int x = 0; x < value.length; x++)
|
||||
{
|
||||
if (x>0) {
|
||||
retVal.append(", ");
|
||||
}
|
||||
retVal.append(toHex(value[x]));
|
||||
}
|
||||
retVal.append(toHex(value[x]));
|
||||
}
|
||||
retVal.append(']');
|
||||
return retVal.toString();
|
||||
|
|
Loading…
Reference in New Issue