mirror of
https://github.com/nmap/nmap.git
synced 2026-10-08 21:36:20 +00:00
Fix a crash in Zenmap Compare Results.
This commit is contained in:
parent
6c934abb93
commit
15eb10e9fb
2 changed files with 8 additions and 1 deletions
|
|
@ -302,7 +302,10 @@ class ScanChooser(HIGVBox):
|
|||
def get_nmap_output(self):
|
||||
"""Return the currently selected scan's output as a string, or None if
|
||||
no valid scan is selected."""
|
||||
return self.parsed_scan.get_nmap_output()
|
||||
if self.parsed_scan is not None:
|
||||
return self.parsed_scan.get_nmap_output()
|
||||
else:
|
||||
return None
|
||||
|
||||
nmap_output = property(get_nmap_output)
|
||||
parsed_scan = property(get_parsed_scan)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue