From eb48fb68925e7b3b14ca68118d87585db63c43c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johan=20Sch=C3=B6n?= <js@opera.com>
Date: Sun, 17 Oct 1999 02:57:26 +0200
Subject: [PATCH] Added catch.

Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike:1.3
---
 lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike b/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike
index 99a91ed657..0cc523dbff 100644
--- a/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike
+++ b/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike
@@ -19,10 +19,15 @@ class Thread
 
     array(mapping) flatten(int depth)
     {
-//       werror("%d, ",text->no);
+      string author_name;
+      catch {
+	author_name=text->author->name;
+      };
+      if(!author_name)
+	author_name="Deleted person";
       return ({ ([ "no":         (string)text->no,
-		   "author_no":  (string)text->author->name,
-		   "author_name":text->author->name,
+		   "author_no":  (string)text->author->no,
+		   "author_name":author_name,
 		   "subject":    text->subject,
 		   "unread":     (unread?"un":""),
 		   "depth":      (string)depth ]),
-- 
GitLab