Handle nullptr.

This commit is contained in:
Jeff Young 2020-01-15 17:46:01 +00:00
parent 0f4c56cbbd
commit 32823a0855
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ void DL_WriterA::dxfString( int gc, const char* value ) const
#ifndef __GCC2x__
// throw DL_NullStrExc();
#endif
// KIDCAD CHANGE: if we're not going to throw we at least need to
// exit before dereferencing the null value.
return;
}
m_ofile << ( gc<10 ? " " : (gc<100 ? " " : "") ) << gc << "\n"