I've just thought of another slang use for both words 'to be arrested by the police.' The nick is a slang word for the police station, so to be nicked means to be arrested and taken to the police station. Pinched can also mean the same thing, but is old fashioned and rarely used today. I think that this use might just be British English.