diff options
| author | Monroe Linden <monroe@lindenlab.com> | 2010-08-09 17:17:49 -0700 | 
|---|---|---|
| committer | Monroe Linden <monroe@lindenlab.com> | 2010-08-09 17:17:49 -0700 | 
| commit | 235afd7836d74305292067cd6c29fe0192d6201d (patch) | |
| tree | 2cb0f2f9c817b9f70db8e115aaf69990555210ea /indra/llcommon/llapr.cpp | |
| parent | c90a90407c30415bf9700d3b037a0b8918e261d3 (diff) | |
| parent | 011c3686a6e10edfe40adb67105298033188c1d6 (diff) | |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience
Diffstat (limited to 'indra/llcommon/llapr.cpp')
| -rw-r--r-- | indra/llcommon/llapr.cpp | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/indra/llcommon/llapr.cpp b/indra/llcommon/llapr.cpp index 7330b00bcf..dca4cf7c3f 100644 --- a/indra/llcommon/llapr.cpp +++ b/indra/llcommon/llapr.cpp @@ -417,7 +417,11 @@ apr_pool_t* LLAPRFile::getAPRFilePool(apr_pool_t* pool)  // File I/O  S32 LLAPRFile::read(void *buf, S32 nbytes)  { -	llassert_always(mFile) ; +	if(!mFile)  +	{ +		llwarns << "apr mFile is removed by somebody else. Can not read." << llendl ; +		return 0; +	}  	apr_size_t sz = nbytes;  	apr_status_t s = apr_file_read(mFile, buf, &sz); @@ -435,7 +439,11 @@ S32 LLAPRFile::read(void *buf, S32 nbytes)  S32 LLAPRFile::write(const void *buf, S32 nbytes)  { -	llassert_always(mFile) ; +	if(!mFile)  +	{ +		llwarns << "apr mFile is removed by somebody else. Can not write." << llendl ; +		return 0; +	}  	apr_size_t sz = nbytes;  	apr_status_t s = apr_file_write(mFile, buf, &sz); | 
