(C) 1998 AROS - The Amiga Research OS
Although the function may have returned NULL, that does not necessarily meant there is an error. If dos/IoErr() returns 0, then there was no error, but the language of the built in strings is the same as that of a catalog.
If IoErr() != 0, then there was an error however.