Bark up the wrong tree

To make a wrong assumption about something.

The police are barking up the wrong tree in their investigation of the criminal.