summaryrefslogtreecommitdiff
path: root/src/class_loader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/class_loader.cc')
-rw-r--r--src/class_loader.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/class_loader.cc b/src/class_loader.cc
index 97691362c4..8f8e829761 100644
--- a/src/class_loader.cc
+++ b/src/class_loader.cc
@@ -18,6 +18,7 @@ const std::vector<const DexFile*>& ClassLoader::GetClassPath(const ClassLoader*
Class* PathClassLoader::dalvik_system_PathClassLoader_ = NULL;
const PathClassLoader* PathClassLoader::Alloc(std::vector<const DexFile*> dex_files) {
+ DCHECK(dalvik_system_PathClassLoader_ != NULL);
PathClassLoader* p = down_cast<PathClassLoader*>(dalvik_system_PathClassLoader_->AllocObject());
p->SetClassPath(dex_files);
return p;