From 5329189e893f65c0af1b250efe6fefaaa85477ae Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 10 Jan 2019 15:33:09 -0500 Subject: [PATCH] 2019-01-10 Fred Gleason * Fixed a bug in 'pypad_xds.py' that threw an exception when processing a PAD update originated from a null log. --- ChangeLog | 3 +++ apis/pypad/scripts/pypad_xds.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 355c33ad..5d443079 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18361,3 +18361,6 @@ segfault when playing an event in a null log. 2019-01-10 Fred Gleason * Fixed a typo in 'apis/pypad/scripts/pypad_xmpad.exemplar'. +2019-01-10 Fred Gleason + * Fixed a bug in 'pypad_xds.py' that threw an exception when + processing a PAD update originated from a null log. diff --git a/apis/pypad/scripts/pypad_xds.py b/apis/pypad/scripts/pypad_xds.py index 42b016f0..d6f3b990 100755 --- a/apis/pypad/scripts/pypad_xds.py +++ b/apis/pypad/scripts/pypad_xds.py @@ -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: #