Fix crash of issue #1082

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-02-10 22:42:00 +01:00
parent eeb98a8ccd
commit 16f6ecc8bc
No known key found for this signature in database
GPG key ID: D850A5F772E880F9

View file

@ -301,9 +301,12 @@ def infos(ref):
if item:
for r in range(item.rowCount()):
ID = item.child(r, 0).text()
characters += "<li><a href='{link}'>{text}</a>".format(
link=characterReference(ID),
text=pM.getCharacterByID(ID).name())
character = pM.getCharacterByID(ID)
if character is not None:
characters += "<li><a href='{link}'>{text}</a>".format(
link=characterReference(ID),
text=character.name())
# Resolution steps
steps = ""