HCL-TECH-SOFTWARE / domino-jnx

Modern Domino Java API based on JNA access to Domino's C API
https://opensource.hcltechsw.com/domino-jnx/
Apache License 2.0
15 stars 3 forks source link

SWT Example: The call to DominoClient#getKnownServers can crash on launch #242

Open jesse-gallagher opened 3 years ago

jesse-gallagher commented 3 years ago

Though this call is ostensibly local-only, it can fail with a "can't reach server" error. Perhaps this happens when the home server is unavailable. In any event, it certainly shouldn't prevent the app from opening, so it would be better to have this return an empty list on failure.

klehmann commented 3 years ago

Interesting. Never used the underlying function NSGetServerList before. In a customer app I am reading the content of the ($Connections) view from names.nsf for the current username and for "*". And then I add the $SavedServers item of the active location doc to that list.