2019-01-10 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'pypad_xds.py' that threw an exception when
	processing a PAD update originated from a null log.
This commit is contained in:
Fred Gleason 2019-01-10 15:33:09 -05:00
parent 8f889d212a
commit 5329189e89
2 changed files with 4 additions and 1 deletions

View File

@ -18361,3 +18361,6 @@
segfault when playing an event in a null log.
2019-01-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a typo in 'apis/pypad/scripts/pypad_xmpad.exemplar'.
2019-01-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'pypad_xds.py' that threw an exception when
processing a PAD update originated from a null log.

View File

@ -64,7 +64,7 @@ def ProcessPad(update):
while(True):
section='Udp'+str(n)
try:
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW):
if update.shouldBeProcessed(section) and update.hasPadType(pypad.TYPE_NOW) and update.hasService():
packet='0:'+update.serviceProgramCode()+':'+update.config().get(section,'IsciPrefix')+FilterField(update.padField(pypad.TYPE_NOW,pypad.FIELD_EXTERNAL_EVENT_ID))+':*'
try:
#