diff --git a/indra/newview/llavatarrenderinfoaccountant.cpp b/indra/newview/llavatarrenderinfoaccountant.cpp
index ed97dfefe256f1568a043c5bd8297f03ec573ec9..2f35e6f8089ac26cf32a5463a3e0602235345376 100644
--- a/indra/newview/llavatarrenderinfoaccountant.cpp
+++ b/indra/newview/llavatarrenderinfoaccountant.cpp
@@ -65,10 +65,10 @@ public:
 	{
 	}
 
-	virtual void httpError()
+	virtual void httpFailure()
 	{
-		const std::string& reason = getReason();
 		const S32 statusNum = getStatus();
+		const std::string& reason = getReason();
 		LLViewerRegion * regionp = LLWorld::getInstance()->getRegionFromHandle(mRegionHandle);
 		if (regionp)
 		{
@@ -165,8 +165,8 @@ public:
 
 	virtual void httpFailure()
 	{
-		const std::string& reason = getReason();
 		const S32 statusNum = getStatus();
+		const std::string& reason = getReason();
 		LLViewerRegion * regionp = LLWorld::getInstance()->getRegionFromHandle(mRegionHandle);
 		if (regionp)
 		{