LMS-1356 Unable to create Official Lists due to a "Can’t read properties of null" error
ID | Raised by | Affects version | Jira reference(s) | Status |
---|---|---|---|---|
LMS-1356 | HoL | 14 | SPT-1342 | OPEN |
Issue description
An error message sometimes appears when trying to create an amendment list from the Official List tab. The error message is “Can’t read properties of null (reading focus)”. This can also happen when trying to create a new list on the Amendment Workspace tab.

You may find that the list has actually been created, despite the error: closing the modal and refreshing the page sometimes shows the list has been generated.
Workaround
This error message appears to be caused (or at least exacerbated) by browser settings related to allowing or blocking pop-up windows. The following steps should help to resolve the issue:
In Chrome:
Open Chrome Settings: Click on the three dots in the top-right corner of the Chrome browser window to open the menu. From the dropdown, select "Settings."
Navigate to Privacy and Security: In the Settings menu, scroll down and click on "Privacy and Security" in the left-hand sidebar.
Access Site Settings: Within the Privacy and Security section, locate and click on "Site Settings".
Manage Pop-ups and Redirects: Under the Permissions section, find and click on "Pop-ups and redirects".
Allow Pop-ups from Lawmaker: In the Pop-ups and Redirects settings, locate the "Allow" section. Click on "Add" next to "Allow," and enter the URL for Lawmaker's website (e.g., https://lawmaker.legislation.gov.uk/, https://lawmaker.staging.legislation.gov.uk/, https://lawmaker.dev.legislation.gov.uk/). This will whitelist Lawmaker and prevent Chrome blocking its pop-ups.
In Edge:
Open Edge Settings: Click on the three dots in the top-right corner of the Edge browser window to open the menu. From the dropdown, select "Settings."
Navigate to Cookies and Site Permissions: In the Settings menu, scroll down and click on "Cookies and Site Permissions" in the left-hand sidebar.
Open Pop-ups and Redirects: Within the "Cookies and Site Permissions" section, locate and click on "Pop-ups and Redirects".
Allow Pop-ups from Lawmaker: In the Pop-ups and Redirects settings, locate the "Allow" section. Click on "Add" next to "Allow," and enter the URL for Lawmaker's website (e.g., https://lawmaker.legislation.gov.uk/, https://lawmaker.staging.legislation.gov.uk/ , https://lawmaker.dev.legislation.gov.uk/). This will whitelist Lawmaker and prevent Edge blocking its pop-ups.