Alert with line break from remote makes desktop report a bug

Bug #1516171 reported by Daniel Borges
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
Tim Bentley
2.2
Fix Released
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

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)
Changed in openlp:
assignee: nobody → Tim Bentley (trb143)
Tim Bentley (trb143)
Changed in openlp:
importance: Undecided → Medium
status: New → Confirmed
Tim Bentley (trb143)
Changed in openlp:
status: Confirmed → In Progress
Tim Bentley (trb143)
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)
Changed in openlp:
milestone: none → 2.3.0
status: In Progress → Fix Committed
Tim Bentley (trb143)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.