Skip to content

Commit

Permalink
DDF-2773: Fix NPE from hostname when entering manual URL (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuffer authored and coyotesqrl committed Mar 31, 2017
1 parent 3cbd0a0 commit 4d2e2d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public DiscoverSourcesProbeMethod(List<SourceConfigurationHandler> handlers) {

@Override
public ProbeReport probe(SourceConfiguration config) {
if (InetAddresses.isInetAddress(config.sourceHostName())) {
if (config.sourceHostName() != null
&& InetAddresses.isInetAddress(config.sourceHostName())) {
try {
config.sourceHostName(InetAddress.getByName(config.sourceHostName()).getHostName());
} catch (UnknownHostException e) {
Expand Down

0 comments on commit 4d2e2d8

Please sign in to comment.