diff --git a/common/settings/parameters.cpp b/common/settings/parameters.cpp index 4a58c1edcf..8c21b45ab4 100644 --- a/common/settings/parameters.cpp +++ b/common/settings/parameters.cpp @@ -121,7 +121,16 @@ bool PARAM_LIST::MatchesFile( JSON_SETTINGS* aSettings ) const std::vector val; for( const auto& el : js->items() ) - val.emplace_back( el.value().get() ); + { + try + { + val.emplace_back( el.value().get() ); + } + catch( ... ) + { + // Probably typecast didn't work; skip this element + } + } return val == *m_ptr; }