mirror of
https://github.com/RAIRLab/Spectra.git
synced 2024-11-24 09:56:30 -05:00
Fixed bug with empty plan
This commit is contained in:
parent
26254f895a
commit
d647b0d37d
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ public class Plan {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
if (actions.size() == 0) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
return actions.stream().map(x-> x.toString() + " ").reduce((x,y) -> x + y).get();
|
return actions.stream().map(x-> x.toString() + " ").reduce((x,y) -> x + y).get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue