The object at dereference depth 1 is being used before it was constructed/allocated. Please make sure that the object is allocated before using it

In reply to chr_sue:

Hi ,

the second line is commented and not used in the code.
monitor has aport and createed via new() in build_phase,

thanks