From 9efc2f7c779b1b331ecb1f5938dd1a06f3dbc63b Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 20 Apr 2010 14:51:08 +0000 Subject: When saving an SPF only save the socket if it's present. Fixes http://spbug.com/l/137 --- Source/TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index d97a146e..1a56d480 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -2886,7 +2886,7 @@ break; case SPSocketConnection: aString = @"SPSocketConnection"; - [connection setObject:[connectionController socket] forKey:@"socket"]; + if ([connectionController socket] && [[connectionController socket] length]) [connection setObject:[connectionController socket] forKey:@"socket"]; break; case SPSSHTunnelConnection: aString = @"SPSSHTunnelConnection"; -- cgit v1.2.3