A TEENAGER has avoided an immediate custodial sentence after he was caught in possession of a knife in Barrow town centre.