If searching apocrypha book name while 2nd bible does not have it = Traceback

Bug #1553863 reported by Azaziah on 2016-03-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Low
Tomas Groth
2.4
Undecided
Tomas Groth

Bug Description

For an example searching "Tobit 1" in Scripture Refence Search while primary bible is KJV and secondary Bible has no apocrypha books.

Traceback (most recent call last):
  File "E:\bzr\openlp\trunk\openlp\plugins\bibles\lib\mediaitem.py", line 702, in on_quick_search_button
    self.display_results(bible, second_bible)
  File "E:\bzr\openlp\trunk\openlp\plugins\bibles\lib\mediaitem.py", line 711, in display_results
    items = self.build_display_results(bible, second_bible, self.search_results)
  File "E:\bzr\openlp\trunk\openlp\plugins\bibles\lib\mediaitem.py", line 763, in build_display_results
    data['second_text'] = self.second_search_results[count].text
TypeError: 'NoneType' object is not subscriptable

Win 8.1 / 2.4

Related branches

lp:~tomasgroth/openlp/25bugfixes2
Raoul Snyman: Approve on 2016-04-12
Tim Bentley: Approve on 2016-04-12
lp:~tomasgroth/openlp/24bugfix-backport1
Raoul Snyman: Approve on 2016-04-22
Tim Bentley: Approve on 2016-04-22
Azaziah (suutari-olli) on 2016-03-07
description: updated
Tomas Groth (tomasgroth) on 2016-03-29
Changed in openlp:
assignee: nobody → Tomas Groth (tomasgroth)
importance: Undecided → Low
status: New → In Progress
Tim Bentley (trb143) on 2016-04-12
Changed in openlp:
status: In Progress → Fix Committed
milestone: none → 2.5.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers