Skip to content

Can call get_succesor() method of fsm class without setting a successor. #958

@kingtom22

Description

@kingtom22

Hi,

Firstly, thank You for developing and maintaining this library, it is very useful.
I found that get_succesor() method of fsm can be called without setting a successor and the function will dereference a nullptr in that case. It is not written in the documentation that the user of the framework must call the has_succesor() method before using the get_succesor() method. I recommend to throw an exception or add this requirement to the documentation.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions