mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 11:15:49 +00:00
Additional defensiveness in ArbitraryDataFile.fromHash() to avoid similar future bugs.
This commit is contained in:
parent
18d5c924e6
commit
146d234dec
@ -110,6 +110,9 @@ public class ArbitraryDataFile {
|
||||
}
|
||||
|
||||
public static ArbitraryDataFile fromHash(byte[] hash, byte[] signature) throws DataException {
|
||||
if (hash == null) {
|
||||
return null;
|
||||
}
|
||||
return ArbitraryDataFile.fromHash58(Base58.encode(hash), signature);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user