forked from Qortal/qortal
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