forked from Qortal/qortal
Fix Crypto.isValidAddress to return false when passed empty string
This commit is contained in:
parent
d9be12e62f
commit
ed94c3c5b3
@ -100,7 +100,7 @@ public class Crypto {
|
||||
}
|
||||
|
||||
// Check address length
|
||||
if (addressBytes.length != Account.ADDRESS_LENGTH)
|
||||
if (addressBytes == null || addressBytes.length != Account.ADDRESS_LENGTH)
|
||||
return false;
|
||||
|
||||
// Check by address type
|
||||
|
Loading…
x
Reference in New Issue
Block a user