Fix typos that led to inappropriate testing and possible NPE
| | |
| | | { |
| | | suffixes.add(replica.getSuffix()); |
| | | } |
| | | // BUG: suf can be null here below |
| | | getUserData().setSuffixesToReplicateOptions( |
| | | new SuffixesToReplicateOptions(type, suffixes, suf.getSuffixes())); |
| | | } |
| | |
| | | String serverToConnectDisplay; |
| | | AuthenticationData authData = |
| | | userInstallData.getReplicationOptions().getAuthenticationData(); |
| | | if (userInstallData != null) |
| | | if (authData != null) |
| | | { |
| | | serverToConnectDisplay = authData.getHostName()+":"+authData.getPort(); |
| | | } |
| | |
| | | AuthenticationData authData = |
| | | data.getReplicationOptions().getAuthenticationData(); |
| | | String newServerDisplay; |
| | | if (data != null) |
| | | if (authData != null) |
| | | { |
| | | newServerDisplay = authData.getHostName()+":"+authData.getPort(); |
| | | } |
| | |
| | | AuthenticationData authData = |
| | | data.getReplicationOptions().getAuthenticationData(); |
| | | String newServerDisplay; |
| | | if (data != null) |
| | | if (authData != null) |
| | | { |
| | | newServerDisplay = authData.getHostName()+":"+authData.getPort(); |
| | | } |