NullPointerException in SSAP window bugfix

When some SSAP server's name ended or started with a space, a
NullPointerException was thrown when querying SSAP servers.