[BUG][PackageInfo] PackageInfo>>extensionMethodsForClass: does not guard nil

Chris Muller afunkyobject at yahoo.com
Fri Mar 26 06:31:36 UTC 2004


Probably a rare case, but when a package-category used for extensions is
defined, but no methods are defined in that category, you cannot save a
Monticello version because this method does not guard against the potentiala
nil from listAtCategoryNamed:.

Perhaps listAtCategoryNamed: should answer #() instead of nil in that case but
that would be a base change.  This fix puts the in a ifNil: guard.

 - Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PackageInfo-extensionMethodsForClass.st
Type: application/octet-stream
Size: 400 bytes
Desc: PackageInfo-extensionMethodsForClass.st
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040325/56181884/PackageInfo-extensionMethodsForClass.obj


More information about the Squeak-dev mailing list