[BUG][FIX][SM] SqueakMap error handling for loading bogus package

David T. Lewis lewis at mail.msen.com
Sun Aug 31 16:29:42 UTC 2003


SMSqueakMap behaves badly when attempting to install a nonexistent package.
This change set fixes the problem by adding some nil checks and by throwing
a Warning when attempting to load a package with a bogus name or UUID.

SUnit tests are provided in a companion change set.

Note: Most SM functions use #inform: to display warnings to the user.
I used #notify: in here because I am assuming that server instances
of SqueakMap may be running headless, and that a headless server could
handle Warning exceptions with no UI interaction. This seemed better
overall than just letting the SMSqueakMap>>installPackageNamed: and
SMSqueakMap>>installPackageWithId: methods fail silently.

Dave

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SMCheckNilFix-dtl.cs.gz
Type: application/x-gunzip
Size: 974 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030831/3974ab1c/SMCheckNilFix-dtl.cs.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SMCheckNilFixSUnitTest-dtl.cs.gz
Type: application/x-gunzip
Size: 732 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030831/3974ab1c/SMCheckNilFixSUnitTest-dtl.cs.bin


More information about the Squeak-dev mailing list