Fix missing serviceitem handling

This commit is contained in:
Tim Bentley 2009-10-16 19:22:14 +01:00
parent 78993adcf0
commit cbb17039d5
1 changed files with 4 additions and 3 deletions

View File

@ -331,7 +331,8 @@ class SlideController(QtGui.QWidget):
"""
Blank the screen.
"""
if self.commandItem.service_item_type == ServiceType.Command:
if self.commandItem is not None and \
self.commandItem.service_item_type == ServiceType.Command:
if blanked:
Receiver().send_message(u'%s_blank'% self.commandItem.name.lower())
else: