Major Plot Hole? Spoiler
Guns have serial numbers. It would've been easy enough to look up the serial number Crawford's (Anthony Hopkins) gun should've had and seen that it doesn't match the number on the gun itself.
Furthermore, they would have looked up the number on the gun and seen that it was registered to the police officer.