3.5.x solaris vsnprintf bug

Ensure that classlist pointer is not NULL before calling log function.