mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 16:41:22 +08:00
GP-0 fix npe
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user