Need to check the other version of hexlate for null arguments as well.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@556 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: StringUtil.java,v 1.23 2002/02/03 02:07:26 shaper Exp $
|
// $Id: StringUtil.java,v 1.24 2002/02/03 02:11:09 mdb Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -350,7 +350,7 @@ public class StringUtil
|
|||||||
*/
|
*/
|
||||||
public static String hexlate (byte[] bytes)
|
public static String hexlate (byte[] bytes)
|
||||||
{
|
{
|
||||||
return hexlate(bytes, bytes.length);
|
return (bytes == null) ? "" : hexlate(bytes, bytes.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user