crash in symbol editor due to nullptr dereference
Description
opening symbol for editing from eeschema, removing a pin and adding it back crashes kicad
Steps to reproduce
- open the attached project schematics
- select the symbol and open it for editing with "Edit with Symbol Editor"
- select pin2 and delete it
- save the symbol -> schematics symbol updates correctly
- add new pin with same name and pin number (pin2, 2)
- save the symbol -> kicad crashes
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 8.99.0-1022-gb9b19cb5fb, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.1
HarfBuzz 8.0.1
FontConfig 2.14.2
Platform: Ubuntu 23.10, 64 bit, Little endian, wxGTK, X11, mate, x11
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 8.2.1
ngspice: 42+
Compiler: GCC 13.2.0 with C++ ABI 1018
Locale:
Lang: en_US
Enc: UTF-8
Num: 1 234,5
Edited by Petri Hodju