sanity check the parameter and return an error code if something isn't right, instead of crashing. git-svn-id: svn://10.0.0.236/trunk@109348 18797224-902f-48f8-a5cc-f745e15eee43
sanity check the parameter and return an error code if something isn't right, instead of crashing. git-svn-id: svn://10.0.0.236/trunk@109348 18797224-902f-48f8-a5cc-f745e15eee43