Merge change 7482

* changes:
  Fix a bug introduced in obex cleanup
This commit is contained in:
Android (Google) Code Review
2009-07-15 18:10:09 -07:00

View File

@@ -875,7 +875,7 @@ public final class ObexHelper {
* @throws IllegalArgumentException if the byte array has an odd length
*/
public static String convertToUnicode(byte[] b, boolean includesNull) {
if (b == null) {
if (b == null || b.length == 0) {
return null;
}
int arrayLength = b.length;