Issue in TNEmulator when GetScreenAsXML returns null

Topics: Developer Forum, User Forum
Dec 2, 2009 at 6:59 PM

In TNEmulator.cs lines 823 and 824:

_currentScreenXML = GetScreenAsXML();
_currentScreenXML.Dump(sout);

But it should be changed because a call to Dump when _currentScreenXML is null will crash:

_currentScreenXML = GetScreenAsXML();
if(_currentScreenXML != null)
_currentScreenXML.Dump(sout);

I submitted this as a "patch" since I do not have the permissions to check-in code.  Also, I have made some additional changes to in ConnectionConfig and TN3270API as well as TNEmulator that will allow you to set exactly which trace options you want to going to your audit log file.  I hate seeing all the EBCDIC characters and things that don't help me troubleshoot my screen-scraping application, so I added these to my code.  I would be glad to upload them if anyone else is interested.