Fixed potential crash if buffer was null.
Authored by: ace123 2003-09-21
Parent: [r7351]
Child: [r7353]