Skip to content

Commit

Permalink
[FCC] check if m_fccmgr exists before using it
Browse files Browse the repository at this point in the history
(cherry picked from commit d5c5583719f0b9be647c9d7082fa9888e60f80e9)
  • Loading branch information
WanWizard authored and Huevos committed Aug 10, 2023
1 parent 49364c0 commit 1eaa737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nav/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RESULT eNavigation::playService(const eServiceReference &service)
{
RESULT res = -1;

if (m_fccmgr->tryFCCService(service, m_runningService) == -1)
if (! m_fccmgr || m_fccmgr->tryFCCService(service, m_runningService) == -1)
{
stopService();
ASSERT(m_servicehandler);
Expand Down Expand Up @@ -79,7 +79,7 @@ RESULT eNavigation::stopService(void)
/* kill service. */
m_service_event_conn = 0;

m_fccmgr->cleanupFCCService();
m_fccmgr && m_fccmgr->cleanupFCCService();
return 0;
}

Expand Down

0 comments on commit 1eaa737

Please sign in to comment.