Fix another crash when using the simulator probe

This commit is contained in:
Marek Roszko 2020-12-29 07:39:49 -05:00
parent 77f651639d
commit 2a5cd08abb
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ wxString NETLIST_EXPORTER_PSPICE_SIM::ComponentToVector(
wxString device = GetSpiceDevice( aName ).Lower();
wxString param = aParam.Lower();
if( device[0] == 'x' )
if( device.length() > 0 && device[0] == 'x' )
{
return "current probe of .subckt not yet implemented";
}