Nobody disputes there were two text messages and two phone calls.

But what Sydney lawyer Eidan Havas now considers an "error of judgment", NSW Police say is a criminal offence punishable by up to seven years imprisonment.

It is not in dispute that in July this year, Mr Havas, 35, sent two text messages and made two calls to a woman, who cannot be named.

The woman had taken an apprehended violence order out against a man, who had hired Mr Havas as his solicitor.