discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error while opening AddressManager


From: Fred Kiefer
Subject: Re: error while opening AddressManager
Date: Fri, 27 Jan 2012 21:04:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111220 Thunderbird/9.0

Thank you for checking this. The we call it an application code bug.
It is true, GNUstep used to behave different, but now we follow the Apple, and most likely the OpenStep, implementation a bit closer.

Adding a check for nil in AddressView shouldn't be to hard.

On 27.01.2012 18:55, Wolfgang Lux wrote:
Fred Kiefer wrote:

The corresponding real back trace is easy to get. Set a break point
on [NSException raise] and run AddressManager, try to add a new
person and you will get:


[...]

This could be either fixed in AddressView, by not setting the
string of a NSTextView to nil. Or we need to protect all calls to
the NSTextView in gui to ignore nil.

Not sure what Apple does here. Anybody out there with some time to
test this?

Apple reports an exception as well upon calling -setString: with a
nil argument:

2012-01-27 18:53:45.599 test[44382:903] An uncaught exception was
raised 2012-01-27 18:53:45.635 test[44382:903] *** -[NSTextView
replaceCharactersInRange:withString:]: nil NSString given.

Wolfgang



reply via email to

[Prev in Thread] Current Thread [Next in Thread]