mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(sfn): return empty objects for null state paths (#3371)
Co-authored-by: xujiantop-crypto <265865031+xujiantop-crypto@users.noreply.github.com>
This commit is contained in:
1 parent
d99f162eb6
commit
3090e333d4
2 files changed
+35
-2
No files matched your search
@@ -3013,7 +3013,7 @@ public class AslExecutor {
|
||||
}
|
||||
String path = stateDef.get("InputPath").asText();
|
||||
if (path == null || path.equals("null")) {
|
||||
return NullNode.getInstance();
|
||||
return objectMapper.createObjectNode();
|
||||
}
|
||||
return resolvePath(path, input);
|
||||
}
|
||||
@@ -3038,7 +3038,7 @@ public class AslExecutor {
|
||||
}
|
||||
String path = stateDef.get("OutputPath").asText();
|
||||
if (path == null || path.equals("null")) {
|
||||
return NullNode.getInstance();
|
||||
return objectMapper.createObjectNode();
|
||||
}
|
||||
return resolvePath(path, output);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user