Keystore#load expects the value of password to be an empty character array (i.e., new char[0]) when the PKCS12 file uses no password.
Keystore#load
password
new char[0]
It is unclear from the documentation what the purpose of passing null as the value of password is.
null