Ms Hartley's son Harry has also attended court