summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/poparser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp
index d4426a2e3..dc201d4b3 100644
--- a/src/utils/translation/poparser.cpp
+++ b/src/utils/translation/poparser.cpp
@@ -41,6 +41,8 @@ PoParser::PoParser() :
void PoParser::openFile(std::string name)
{
const ResourceManager *const resman = ResourceManager::getInstance();
+ if (!resman)
+ return;
int size;
char *buf = static_cast<char*>(resman->loadFile(getFileName(name), size));