utext crashes when opening an empty file

Bug #1653084 reported by Michael Achmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
uText
New
Undecided
Unassigned

Bug Description

When running the command to open an empty file with utext it crashes:

/opt/extras.ubuntu.com/utext/bin/utext README.md

************************************
None
************************************
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/utext/bin/utext", line 39, in <module>
    uTextEx = uText(filename)
  File "/opt/extras.ubuntu.com/utext/share/utext/utext.py", line 352, in __init__
    self.load_file(afile)
  File "/opt/extras.ubuntu.com/utext/share/utext/utext.py", line 655, in load_file
    ans = data.decode(encoding)
TypeError: decode() argument 1 must be str, not None

The same applies for opening a file via right-click menu. Without a file the Program is working fine, if the file is not empty its working properly as well.

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.