A YOUNG man caught with a Stanley knife had been told by gardai there was a threat to his life, a court heard.
Ernestas Steponkus (22) claimed he only had the blade for his own protection, and he did not intend to use it.
Judge John Coughlan imposed a two-month sentence.
Steponkus, of Pinewoods, Greenpark, Clondalkin, admitted before Tallaght District Court to possession of a Stanley blade.
The incident took place at Cushlawn Walk, Tallaght, last July 24.
The court heard Steponkus has 29 previous convictions, though none for this type of offence.
Defence lawyer Patrick McCullough said Steponkus is originally from Lithuania but came to Ireland with his mother 11 years ago.
Mr McCullough said Steponkus had been warned by gardai in Clondalkin that there was a threat on his life.
He said Steponkus did not intend to use the knife, but had it for defensive purposes.
The court heard Steponkus is currently unemployed and is awaiting a FAS course.
He had been working in the UK as a labourer and only recently returned to Ireland.