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: #