-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't save step context during restart #27
Conversation
FlowExecutionOwner.Executable executable = (FlowExecutionOwner.Executable) this.run; | ||
FlowExecutionOwner flowOwner = executable.asFlowExecutionOwner(); | ||
if (flowOwner != null) { | ||
node = flowOwner.get().getNode(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
null check IIRC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.get() is non null, the node is checked for null on line 121
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I meant to say that you could consider calling getOrNull
so as to fall back to TaskListener.NULL
in more edge conditions. Not sure it would be helpful though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, done in the last commit, and simplified a bit
FlowExecutionOwner.Executable executable = (FlowExecutionOwner.Executable) this.run; | ||
FlowExecutionOwner flowOwner = executable.asFlowExecutionOwner(); | ||
if (flowOwner != null) { | ||
node = flowOwner.get().getNode(id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, I meant to say that you could consider calling getOrNull
so as to fall back to TaskListener.NULL
in more edge conditions. Not sure it would be helpful though.
76233b7
to
c2267a6
Compare
#18 (comment)
I've tested this manually and code paths work correctly and it's no longer saved in the
build.xml
Bit convoluted though =/