throw error when checking next_action_type() of null
This commit is contained in:
@@ -86,6 +86,9 @@ bool has_next_action() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string next_action_type() {
|
std::string next_action_type() {
|
||||||
|
if(next_action == nullptr){
|
||||||
|
throw "Replay error! No action left to check type";
|
||||||
|
}
|
||||||
return next_action->Value();
|
return next_action->Value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user