forked from openlp/openlp
Fix a bug where a null field would cause an exception.
This commit is contained in:
parent
fabf12ad70
commit
aadc913ba1
@ -145,6 +145,10 @@ class SongsPlugin(Plugin):
|
|||||||
counter = 0
|
counter = 0
|
||||||
for song in songs:
|
for song in songs:
|
||||||
counter += 1
|
counter += 1
|
||||||
|
if song.title is None:
|
||||||
|
song.title = u''
|
||||||
|
if song.alternate_title is None:
|
||||||
|
song.alternate_title = u''
|
||||||
song.search_title = self.whitespace.sub(u' ', song.title.lower()) +\
|
song.search_title = self.whitespace.sub(u' ', song.title.lower()) +\
|
||||||
u' ' + self.whitespace.sub(u' ', song.alternate_title.lower())
|
u' ' + self.whitespace.sub(u' ', song.alternate_title.lower())
|
||||||
progressDialog.setValue(counter)
|
progressDialog.setValue(counter)
|
||||||
|
Loading…
Reference in New Issue
Block a user