Three companies have been fined a total of £670,000 after admitting fire safety failings at student accommodation in Leeds.
Problems at Trinity Hall on Woodhouse Street came to light when the father of a student refused to let her move in and contacted West Yorkshire Fire and Rescue Service to report the building on September 25, 2016.
Subsequently, the accommodation was temporarily shut down.
On Friday, January 31, Leeds Crown Court heard fire inspectors arrived to find the building was still undergoing construction work, despite 27 students already having already moved into the ground floor of the accommodation.
Speaking on the situation, Judge Robin Mairs described the situation as having "potential for catastrophe".
The building's owners, Trinity Developments Ltd, admitted safety breaches, including the staircase to one of two main fire escapes being locked, no signage in place to indicating where the fire escapes were, self-closing devices missing from doors and the upper floors of the building still under construction, with timber exposed.
Niche Homes Ltd, who were contracted to manage and let the facility, admitted the same four breaches.
APP Construction Ltd, who had been contracted to design and build the hall, admitted one charge of failing to provide an adequate number of fire escape routes and exits.
Subsequently, Judge Mairs fined APP Construction Ltd £450,000, Trinity Developments Ltd £160,000 and Niche Homes Ltd £60,000.

Fare Dodger Admits Assaulting Police Officer at London Tube Station
Aylesbury Drug Dealer Jailed for Two Years
Leeds in Running to Host 2035 FIFA Women's World Cup Matches
Bradford Hospital Staff Unite to Rescue Stray Cat Family
Richmond Council calls for West London Orbital extension
Seven jailed for helping Iranian nationals enter UK illegally
Leeds man jailed after naming false driver in speeding case
Final four men jailed for child sexual abuse in Bradford case
London SEND School Becomes First in England to Win World's Best School Prize
New and Improved Bus Services Launch Across Blackburn with Darwen
Reopening Keighley Tip Unlikely to Reduce Fly-Tipping, Council Warns
Leeds Economy Strengthens as City Targets 100,000 New Jobs
Bhangra Nights
The Golden Era
Legal Show
Alim OnAir