core/sm_stringutil.cpp
changeset 535 f255342d132f
parent 504 1d6072ba774e
child 544 69b2b24500e2
     1.1 --- a/core/sm_stringutil.cpp	Mon Feb 26 07:44:08 2007 +0000
     1.2 +++ b/core/sm_stringutil.cpp	Mon Feb 26 08:21:09 2007 +0000
     1.3 @@ -660,7 +660,12 @@
     1.4  			{
     1.5  				CHECK_ARGS(0);
     1.6  				char *str;
     1.7 -				pCtx->LocalToString(params[arg], &str);
     1.8 +				int err;
     1.9 +				if ((err=pCtx->LocalToString(params[arg], &str)) != SP_ERROR_NONE)
    1.10 +				{
    1.11 +					pCtx->ThrowNativeErrorEx(err, "Could not deference string");
    1.12 +					return 0;
    1.13 +				}
    1.14  				AddString(&buf_p, llen, str, width, prec);
    1.15  				arg++;
    1.16  				break;