Alert with line break from remote makes desktop report a bug

Bug #1516171 reported by Daniel Borges on 2015-11-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Medium
Tim Bentley
2.2
Medium
Tim Bentley

Bug Description

When you show an alert with more than one line (that shouldn't possible) using the Android app, OpenLP in desktop show an alert saying that an error ocurred, but it doesn't crash. See below:

Traceback (most recent call last):
  File "/Users/raoul/Projects/OpenLP/OpenLP-2.2.1/openlp/plugins/alerts/lib/alertsmanager.py", line 51, in alert_text
  File "/Users/raoul/Projects/OpenLP/OpenLP-2.2.1/openlp/plugins/alerts/lib/alertsmanager.py", line 67, in display_alert
  File "/Users/raoul/Projects/OpenLP/OpenLP-2.2.1/openlp/plugins/alerts/lib/alertsmanager.py", line 78, in generate_alert
  File "/Users/raoul/Projects/OpenLP/OpenLP-2.2.1/openlp/core/ui/maindisplay.py", line 302, in alert
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

OpenLP 2.2.1
Mac OS 10.10.5

In Ubuntu, nothing happens.

Related branches

lp:~trb143/openlp/bug-1516171
Tomas Groth: Approve on 2015-11-16
lp:~trb143/openlp/bug-1516171-24
Tomas Groth: Approve on 2015-11-16
summary: - Alert with more than one line in Android app report a bug
+ Alert with more than one line in Android app makes desktop report a bug
Tim Bentley (trb143) on 2015-11-14
Changed in openlp:
assignee: nobody → Tim Bentley (trb143)
Tim Bentley (trb143) on 2015-11-14
Changed in openlp:
importance: Undecided → Medium
status: New → Confirmed
Tim Bentley (trb143) on 2015-11-15
Changed in openlp:
status: Confirmed → In Progress
Tim Bentley (trb143) on 2015-11-15
summary: - Alert with more than one line in Android app makes desktop report a bug
+ Alert with \n from remote makes desktop report a bug
summary: - Alert with \n from remote makes desktop report a bug
+ Alert with line break from remote makes desktop report a bug
Tim Bentley (trb143) on 2015-11-16
Changed in openlp:
milestone: none → 2.3.0
status: In Progress → Fix Committed
Tim Bentley (trb143) on 2015-12-28
Changed in openlp:
milestone: 2.3.0 → 2.3.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers