From a9d37b657dc340f987d5995f05250307e9e7d326 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 4 Feb 1999 13:51:29 +0000 Subject: [PATCH] property list updates git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3653 72102866-910b-0410-8b05-ffd578937521 --- Source/NSArray.m | 9 +++++++++ Source/NSDictionary.m | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Source/NSArray.m b/Source/NSArray.m index 424ec45f9..7a12917f2 100644 --- a/Source/NSArray.m +++ b/Source/NSArray.m @@ -317,6 +317,15 @@ static Class NSMutableArray_concrete_class; { id result = [myString propertyList]; + NS_DURING + { + result = [myString propertyList]; + } + NS_HANDLER + { + result = nil; + } + NS_ENDHANDLER [myString release]; if ([result isKindOfClass: [NSArray class]]) { diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index 6048073a8..888fd1217 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -385,8 +385,17 @@ static Class NSMutableDictionary_concrete_class; myString = [[NSString alloc] initWithContentsOfFile: path]; if (myString) { - id result = [myString propertyList]; + id result; + NS_DURING + { + result = [myString propertyList]; + } + NS_HANDLER + { + result = nil; + } + NS_ENDHANDLER [myString release]; if ([result isKindOfClass: [NSDictionary class]]) {