This commit is contained in:
yangjiaxuan 2023-06-03 18:08:54 +08:00
parent 377dad1541
commit 0cb203fb7e
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ HGResult HGSaneManagerImpl::OpenSource(HGUInt index, class HGSaneSourceImpl **so
HGResult HGSaneManagerImpl::OpenDefaultSource(HGSaneSourceImpl **sourceImpl)
{
if (NULL == sourceImpl)
if (m_vSource.empty() || NULL == sourceImpl)
{
return HGBASE_ERR_INVALIDARG;
}