Why does the first method work correctly, but the second throws a NullPointerException?
NullPointerException
static void addRecordField(Worker[] worker) throws IOExceptio