Ver código fonte

Fix ensure manifest object is valid before using

Not calling ensureManifestInfo could cause a core.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck 13 anos atrás
pai
commit
fe6059c77d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      ecl/hqlcpp/hqlres.cpp

+ 1 - 1
ecl/hqlcpp/hqlres.cpp

@@ -182,7 +182,7 @@ void ResourceManager::addManifest(const char *filename)
     StringBuffer path;
     Owned<IPropertyTree> t = createPTree();
     t->setProp("@originalFilename", makeAbsolutePath(filename, path).str());
-    manifest->addPropTree("Include", t.getClear());
+    ensureManifestInfo()->addPropTree("Include", t.getClear());
     addManifestFile(filename);
 }