fix(kernel/environment): bug in get_extension
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1a9122f158
commit
90d83fa2ad
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ unsigned environment::register_extension(std::shared_ptr<environment_extension c
|
|||
environment_extension const & environment::get_extension(unsigned id) const {
|
||||
if (id >= get_extension_manager().has_ext(id))
|
||||
throw_invalid_extension(*this);
|
||||
if (id < m_extensions->size() || !(*m_extensions)[id])
|
||||
if (id >= m_extensions->size() || !(*m_extensions)[id])
|
||||
return get_extension_manager().get_initial(id);
|
||||
return *((*m_extensions)[id].get());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue