diff options
Diffstat (limited to 'applications/irda/irda_app_remote_manager.cpp')
-rw-r--r-- | applications/irda/irda_app_remote_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/irda/irda_app_remote_manager.cpp b/applications/irda/irda_app_remote_manager.cpp index d7c33134..8b88d37d 100644 --- a/applications/irda/irda_app_remote_manager.cpp +++ b/applications/irda/irda_app_remote_manager.cpp @@ -110,10 +110,11 @@ std::string IrdaAppRemoteManager::get_button_name(uint32_t index) { } std::string IrdaAppRemoteManager::get_remote_name() { - return remote ? remote->name : std::string(); + return remote.get() ? remote->name : std::string(); } int IrdaAppRemoteManager::find_remote_name(const std::vector<std::string>& strings) { + furi_assert(remote.get() != nullptr); int i = 0; for(const auto& str : strings) { if(!str.compare(remote->name)) { |