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.
I see, in version 19.5.0 etl::succesor has been added, and that implements that check before using pointer of the successor. The issue can be closed.
Thank You, for Your help!
Hi,
Firstly, thank You for developing and maintaining this library, it is very useful. I found that
get_succesor()
method offsm
can be called without setting a successor and the function will dereference anullptr
in that case. It is not written in the documentation that the user of the framework must call thehas_succesor()
method before using theget_succesor()
method. I recommend to throw an exception or add this requirement to the documentation.