mirror of
https://github.com/openharmony/ark_runtime_core.git
synced 2026-07-21 00:26:37 -04:00
!109 fix opensource issues in ark_runtime_core
Merge pull request !109 from nazarovkonstantin/knazarov-fix-opensource-issues
This commit is contained in:
@@ -243,6 +243,11 @@ bool Runtime::Create(const RuntimeOptions &options, const std::vector<LanguageCo
|
||||
|
||||
CreateInstance(options, internal_allocator, ctxs);
|
||||
|
||||
if (instance == nullptr) {
|
||||
LOG(ERROR, RUNTIME) << "Failed to create runtime instance";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!instance->Initialize()) {
|
||||
LOG(ERROR, RUNTIME) << "Failed to initialize runtime";
|
||||
delete instance;
|
||||
|
||||
Reference in New Issue
Block a user