From a41f27a02239c00e875770f8089e7b766b412dbb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 15 Dec 2022 18:14:19 +0000 Subject: [PATCH] Silence Coverity. --- eeschema/sim/sim_model.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sim/sim_model.cpp b/eeschema/sim/sim_model.cpp index b418770e24..82ad6ead2b 100644 --- a/eeschema/sim/sim_model.cpp +++ b/eeschema/sim/sim_model.cpp @@ -1150,6 +1150,9 @@ void SIM_MODEL::MigrateSimModel( T_symbol& aSymbol, const PROJECT* aProject ) auto getSIValue = []( T_field* aField ) { + if( !aField ) // no, not really, but it keeps Coverity happy + return wxString( wxEmptyString ); + wxRegEx regex( wxT( "([^a-z])(M)(e|E)(g|G)($|[^a-z])" ) ); wxString value = aField->GetText();