#414 clicking discover button with empty field causes crash

This commit is contained in:
Oliver Gorwits
2018-05-08 22:33:31 +01:00
parent d7a0bec20b
commit 3d27184b1c
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,10 @@
* #410 improvements to Undiscovered Neighbors report
* device port search will match on Description as well as Port
[BUG FIXES]
* #414 clicking discover button with empty field causes crash
2.039028 - 2018-05-05
[BUG FIXES]

View File

@@ -16,7 +16,7 @@ sub add_job {
return if
($device and (!$net or $net->num == 0 or $net->addr eq '0.0.0.0'));
my @hostlist = defined $device ? ($net->hostenum) : (undef);
my @hostlist = $device ? ($net->hostenum) : (undef);
jq_insert([map {{
($_ ? (device => $_->addr) : ()),