GP-0 fix npe

This commit is contained in:
dev747368
2026-04-03 16:55:35 +00:00
parent 37779a05a8
commit f686293e86
@@ -862,7 +862,7 @@ public final class NumericUtilities {
* @return hex string representation * @return hex string representation
*/ */
public static String convertBytesToString(byte[] bytes) { public static String convertBytesToString(byte[] bytes) {
return convertBytesToString(bytes, 0, bytes.length, null); return bytes != null ? convertBytesToString(bytes, 0, bytes.length, null) : null;
} }
/** /**
@@ -873,7 +873,7 @@ public final class NumericUtilities {
* @return hex string representation * @return hex string representation
*/ */
public static String convertBytesToString(byte[] bytes, String delimiter) { public static String convertBytesToString(byte[] bytes, String delimiter) {
return convertBytesToString(bytes, 0, bytes.length, delimiter); return bytes != null ? convertBytesToString(bytes, 0, bytes.length, delimiter) : null;
} }
/** /**