Fix crash when sending Pdf live.

This commit is contained in:
Tomas Groth 2016-01-12 21:14:04 +01:00
parent c8fd1b8338
commit cf7630d3e3

View File

@ -349,6 +349,7 @@ class MessageListener(object):
# When presenting PDF/XPS/OXPS, we are using the image presentation code,
# so handler & processor is set to None, and we skip adding the handler.
self.handler = None
else:
if self.handler == self.media_item.automatic:
self.handler = self.media_item.find_controller_by_type(file)
if not self.handler: