mailing list archives
Re: Zenmap 5.36TEST4 crash
From: David Fifield <david () bamsoftware com>
Date: Sun, 23 Jan 2011 01:24:10 -0800
On Sat, Jan 22, 2011 at 10:06:54AM +0100, Henri Doreau wrote:
opening an XML scan and pressing scan->print will result in a zenmap
crash with the following traceback:
Traceback (most recent call last):
File "nmap/zenmap/zenmapGUI/MainWindow.py", line 828, in _print_cb
File "nmap/zenmap/zenmapGUI/Print.py", line 148, in run_print_operation
state = PrintState(inventory, entry)
File "nmap/zenmap/zenmapGUI/Print.py", line 118, in __init__
self.lines = output.splitlines()
AttributeError: 'NoneType' object has no attribute 'splitlines'
The menu item scan->print might stay unavailable when opening a saved
scan as it is already when you start zenmap.
Thanks for finding this. I committed a kind of weak workaround, which
just substitutes a blank line when there is no output to be printed.
Disabling the Print menu option is another way to go, but it might be as
confusing as getting a blank page to print.
Sometimes printing of a loaded XML file works--when the file was created
by Zenmap originally.
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/