Skip to content

Commit 11555d2

Browse files
committed
test: stabilize signed admin native coverage
1 parent 81eebd6 commit 11555d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/AdminModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ bool AdminModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshta
228228
// that pointer is unrelated, so the path was unsafe.)
229229

230230
// Automatically favorite the node that is using the admin key
231-
auto remoteNode = nodeDB->getMeshNode(mp.from);
231+
auto remoteNode = nodeDB ? nodeDB->getMeshNode(mp.from) : nullptr;
232232
if (remoteNode && !nodeInfoLiteIsFavorite(remoteNode)) {
233233
if (config.device.role == meshtastic_Config_DeviceConfig_Role_CLIENT_BASE) {
234234
// Special case for CLIENT_BASE: is_favorite has special meaning, and we don't want to automatically set it

0 commit comments

Comments
 (0)