Closed railroad890 closed 4 months ago
You're composing the same command instance twice -- that correctly throws. (There's a bug that truncates the error message into a less helpful one, but that's reported and being fixed).
My recommendation is to never store commands in variables; it's a recipe for this type of mistake.
Another recommendation is to add all commands to the sequence at once rather than one at a time -- it's more succinct and doesn't allocate a bunch of objects that make trouble for the GC.
Read the documentation about command compositions, there's a lot of helpful info there.
Describe the bug When using andThen on a previously created SequentialCommandGroup object, the code crashes, indicating an
Originally composed at:
error. Full stack trace:To Reproduce Steps to reproduce the behavior:
Use .andThen() on the SecquentialCommandGroup object
Expected behavior A new SequentialCommandGroup to be returned
Desktop:
Additional context When calling the same functions as andThen manually, the code does not crash. The code I used to test this is at the link above.