From e96432b648643859b39555ce0347ebe07625754f Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 23 Aug 2012 14:21:26 +0200
Subject: [PATCH] prevent traceback

---
 src/gui_interface.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/gui_interface.py b/src/gui_interface.py
index c9fa3a71ad..a3ceb90a51 100644
--- a/src/gui_interface.py
+++ b/src/gui_interface.py
@@ -185,10 +185,11 @@ class Interface:
             if len(obj.id_) > 3 and obj.id_[2] == '_':
                 sid = obj.id_[3:]
             file_props = FilesProp.getFileProp(obj.conn.name, sid)
-            self.handle_event_file_send_error(obj.conn.name, (obj.fjid,
-                file_props))
-            obj.conn.disconnect_transfer(file_props)
-            return
+            if file_props:
+                self.handle_event_file_send_error(obj.conn.name, (obj.fjid,
+                    file_props))
+                obj.conn.disconnect_transfer(file_props)
+                return
 
         ctrl = self.msg_win_mgr.get_control(obj.fjid, obj.conn.name)
         if ctrl and ctrl.type_id == message_control.TYPE_GC:
-- 
GitLab