Guide / Every rule
A worker reads a variable no step before it sets
The check code/late-read, in the group Diagrams and code.
Why it matters
The worker is handed only the variables the process set before it, so a name it reads that nothing set before it is null at runtime.
How to fix it
Set the variable in an earlier step, or drop it from the worker.
Where you see it
The Problems tab lists it under Code. In a terminal, penstock code reports it with the file and line. This check is part of Penstock Pro, and Team in a pipeline.
Rule details
| Id | code/late-read |
| Group | Diagrams and code |
| Level | Advice: it works, and reads or runs better without it |
Read more: Code links. All rules: Every rule.