From 0f1b397d167116a9d61f67d5f072bcb08e43fea4 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Thu, 14 Jul 2011 19:17:59 -0700 Subject: [PATCH] Fix for crash caused by Objects without a name when running localized. --- Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp b/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp index 9f6d9ad5..0fff1520 100644 --- a/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp +++ b/Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp @@ -515,7 +515,7 @@ inline plKeyImp* IFindKeyLocalized(const plUoid& uoid, plRegistryPageNode* page) const char* objectName = uoid.GetObjectName(); // If we're running localized, try to find a localized version first - if (plLocalization::IsLocalized()) + if ((objectName != nil) && plLocalization::IsLocalized()) { char localName[256]; if (plLocalization::GetLocalized(objectName, localName))