summaryrefslogtreecommitdiff
path: root/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java')
-rw-r--r--src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java b/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
index 92a90f9..85f6fdd 100644
--- a/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
+++ b/src/main/java/au/id/zancanaro/javacheck/state/GeneratedCommand.java
@@ -43,6 +43,10 @@ public class GeneratedCommand<S, A, R> {
@Override
public String toString() {
- return "#{" + id + "} = " + command + " <- " + args;
+ if (args == null) {
+ return "#{" + id + "} = " + command;
+ } else {
+ return "#{" + id + "} = " + command + " <- " + args;
+ }
}
}