From e948bfef94e3e52429c0d60c552a73bbca66d539 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@redhat.com>
Date: Thu, 23 Feb 2017 21:16:22 -0500
Subject: [PATCH] Fix crash on user selection

This isn't remotely usable, but it at least doesn't crash now.

Change-Id: I252432192531699ab321958c506b761a6c8610a0
---
 boartty/view/story.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/boartty/view/story.py b/boartty/view/story.py
index 572f649..0a983c6 100644
--- a/boartty/view/story.py
+++ b/boartty/view/story.py
@@ -108,7 +108,8 @@ class AssigneeButton(mywid.SearchSelectButton):
         with self.app.db.getSession() as session:
             users = session.getUsers()
         for user in users:
-            yield (user.key, user.name)
+            if user.name is not None:
+                yield (user.key, user.name)
 
 class NewTaskDialog(urwid.WidgetWrap, mywid.LineBoxTitlePropertyMixin):
     signals = ['save', 'cancel']