From 1c73d3d96721fad3cb18420c44ca094985c7eeaf Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 18 Dec 2023 18:36:14 +0000 Subject: [PATCH] nullptr safety --- pcbnew/router/pns_kicad_iface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index ea7cf21cb9..fa54f1ebeb 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -1932,7 +1932,8 @@ BOARD_CONNECTED_ITEM* PNS_KICAD_IFACE::createBoardItem( PNS::ITEM* aItem ) return nullptr; } - default: break; + default: + return nullptr; } if( net->GetNetCode() <= 0 )