Commit 60ccd74
authored
MoveRelative: fix segfault on empty trajectory (moveit#595)
Check that at least one robot state exists in the robot trajectory before accessing it.
Signed-off-by: Paul Gesel <[email protected]>1 parent 2e9a223 commit 60ccd74
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
334 | | - | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| |||
0 commit comments