fix npe when trying to print dot files