Kevin McMullen caught after walking in on police search of his flat An armed robber returned home from his latest crime to find police in the process of searching his flat. Kevin McMullen arrived at the house carrying a holdall containing cash, a large kitchen knife and a gift voucher from the hair salon he had just held up. Appearing at the High Court in Edinburgh on Thursday, the 32-year-old was warned he could face an indeterminate sentence. Judge Lord Burns ordered a full risk assessment to be carried out by a psychiatrist to see if the risk criteria were met for imposing an order for lifelong restriction (OLR) on McMullen. Under such an order a judge sets a minimum period the offender must serve in prison. Any decision to free him is left to the parole board. Lord Burns said he took into account McMullen's pattern of offending since 2006, background problems and "his inability to explain rationally why he committed the offences." Defence solicitor advocate Robert Mitchell said he accepted they were serious offences but argued that the case could be dealt with other than by imposing an OLR. McMullen earlier admitted robbing a BP garage at Stonelaw Road, Rutherglen, in South Lanarkshire, on February 3 and committing a further assault and robbery three days later at Havannah Hairdressers in Stonelaw Road. The court heard that he walked into the petrol station wearing a black hooded top and went up to cashier Christopher Harvey and said: "Give me all the money in the till." Mr Harvey at first thought it was a joke and laughed at him, but McMullen brought out a knife from his waistband and told him he was not joking and demanded he get the cash out of the till "right now." The robber told his victim he only wanted banknotes and the money was handed over. McMullen told Mr Harvey as he left: "Don't take it personally, mate." More than £100 was later found to be missing. McMullen struck again days later when he went to the hairdressing salon where Shivonne Devine was cutting a client's hair. Ms Devine asked if she could help him and he produced a large knife from a holdall and shouted: "You've got five minutes to get me the money." She handed a cash box to him but he refused it and indicated he just wanted the contents which were put into his bag. After looking at CCTV footage of the robbery at the garage, police identified him as the perpetrator and search warrants were obtained for addresses in Cambuslang and Fraser Avenue, Rutherglen, which were known to be associated with McMullen. The court heard that a search was being carried out at the flat in Rutherglen when McMullen arrived after committing the robbery at the hair salon and he was immediately detained. More than £124 in notes and coins were found in his holdall along with the weapon used in the raid. Mr Mitchell said McMullen had stated "an appropriate degree of remorse" and an intention to change. Lord Burns pointed out that since 2006, when at liberty, McMullen had run up convictions for offences including robbery and assault. The judge said he had come to the conclusion he was bound to make a risk assessment order on McMullen and deferred sentence on him until later this year.