mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-23 13:16:48 +08:00
GP-0 fix npe
This commit is contained in:
@@ -862,7 +862,7 @@ public final class NumericUtilities {
|
||||
* @return hex string representation
|
||||
*/
|
||||
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
|
||||
*/
|
||||
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