RESTMock
RESTMock copied to clipboard
Crash with proguard
Hi,
the REST-Mock crashes when proguard obfuscation is applied and HTTPS is enabled.
Here is the stacktrace:
2020-05-08 14:19:07.799 13382-13475/xxx E/AndroidRuntime: FATAL EXCEPTION: pool-10-thread-1
Process: xxx, PID: 13382
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.security.PublicKey.getAlgorithm()' on a null object reference
at java.security.KeyStore$PrivateKeyEntry.
According to this article the reason may be, that a deprecated version of spongycastle code to generate a self signed certificate is used: http://quabr.com:8182/59848764/how-to-fix-proguard-removes-java-security-code
Regards Benjamin
thanks @bmesing for reporting this, I'll take a look into it