[OPENAM-5660] NPE when the keyalias does not exist or does not contain a certificate Created: 13/Mar/15 Updated: 20/Nov/16 Resolved: 31/Mar/15
|Fix Version/s:||11.0.4, 12.0.1, 13.0.0|
|Reporter:||Quentin CASTEL [X] (Inactive)||Assignee:||Quentin CASTEL [X] (Inactive)|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Support Ticket IDs:|
when the keyalias does not exist or does not contain a certificate, the certificate can't be found and therefore, the getCertificate return null:
The null condition should be tested before trying to access the "cert" instance.
|Comment by Andrew Dunn [X] (Inactive) [ 27/Mar/15 ]|
This can happen when a user creates a new keystore and key alias (i.e. not 'test'), is using XUI and does not update:
As an improvement , the UI could also check for the existence of the key alias when entered, to avoid mistakes. Similar to when you add a signing key alias when configuring SAML2 entities.
|Comment by Quentin CASTEL [X] (Inactive) [ 31/Mar/15 ]|
Fixed in 13.0.0 r13250