Cannot invoke "java.security.KeyStore.size()" because "this.myKeyStore" is null - Getting error in Intellij Idea

1k Views Asked by At

I have a Gradle-based automation framework where I get the * "Cannot invoke "java.security.KeyStore.size()" because "this.myKeyStore" is null "* error when I'm trying to build the project. Following are the versions that I'm using: Gradle - 6.8.1 Java - 9.0.4

I've tried to implement the solution given by Jet Brains for this problem (delete the SSL/cacerts file from the IDE configuration directory), but it hasn't solved my issue yet.

Any help is much appreciated. Thanks in advance.

1

There are 1 best solutions below

0
On

I've tried to implement the solution given by Jet Brains for this problem (delete the SSL/cacerts file from the IDE configuration directory), but it hasn't solved my issue yet.

It works - you need to restart IDE after deletion of 'cacerts' file