Skip to content

Commit 1ab3a1d

Browse files
authored
Fix nullopt dereference in GoToPlace goal selection (#130)
Signed-off-by: kjchee <keai_jiang_chee@cgh.com.sg>
1 parent b765a66 commit 1ab3a1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rmf_task_sequence/src/rmf_task_sequence/events/GoToPlace.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ Activity::ConstModelPtr GoToPlace::Model::make(
109109
invariant_initial_state,
110110
goal);
111111

112+
if (!invariant_duration_opt.has_value())
113+
continue;
114+
112115
if (!shortest_travel_time.has_value())
113116
{
114117
shortest_travel_time = invariant_duration_opt;

0 commit comments

Comments
 (0)