diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 4a540fbe58d3e95c3f1bb31e2b5976d9e95d1729..d12fd48ffb46e9133197d377134a587d990d5720 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -301,7 +301,8 @@ void LLFace::switchTexture(LLViewerTexture* new_texture)
 
 	if(!new_texture)
 	{
-		llerrs << "Can not switch to a null texture." << llendl ;
+		llerrs << "Can not switch to a null texture." << llendl;
+		return;
 	}
 	new_texture->addTextureStats(mTexture->getMaxVirtualSize()) ;