jwagenleitner/groovy-wslite — Issue #35: SSL truststore files that do not exist is not being handled correctly
Author: jwagenleitner
Created: 2012-01-10 22:06:08+00:00
State: open

``` groovy
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='0.5.2')
import wslite.rest.*

try {
def client = new RESTClient("https://www.google.com/")
client.httpClient.sslTrustStoreFile = "c:/temp/keystore_that_does_not_exist.jks"
def response = client.get()
} catch (ex) {
println ex
}
```

This returns `wslite.rest.RESTClientException: Cannot invoke method disconnect() on null object`.