Commit b77accfb authored by michael.simon's avatar michael.simon
Browse files

Add Null check for bouncey castle crypto provider

parent 94748de2
......@@ -81,6 +81,12 @@ public class ShowAdminUserBean implements Serializable {
protected void fillHashMethod() {
Provider provider = Security.getProvider("BC");
if (provider == null) {
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
provider = Security.getProvider("BC");
}
List<String> algoList = new ArrayList<String>();
for (Service service : provider.getServices()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment