Cannot read properties of null (reading 'length') #14729

Closed
opened 2025-11-02 11:21:23 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @AAEE86 on GitHub (Jul 9, 2025).

Description

JavaScript error: Cannot read properties of null (reading 'length') (https://****/assets/js/index.js?v=1.25.0~dev-270-g55f350542c @ 10:30268). Open browser console to see more details. (10)

https://github.com/go-gitea/gitea/blob/main/web_src/js/utils/dom.ts

Gitea Version

1.25.0+dev-270-g55f350542c

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

SQLite

Originally created by @AAEE86 on GitHub (Jul 9, 2025). ### Description JavaScript error: Cannot read properties of null (reading 'length') (https://****/assets/js/index.js?v=1.25.0~dev-270-g55f350542c @ 10:30268). Open browser console to see more details. (10) [https://github.com/go-gitea/gitea/blob/main/web_src/js/utils/dom.ts](url) ### Gitea Version 1.25.0+dev-270-g55f350542c ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots <img width="2559" height="833" alt="Image" src="https://github.com/user-attachments/assets/dcb1790f-6962-4b0f-b83a-c4cda3ce2e89" /> ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 11:21:23 -06:00
Author
Owner

@AAEE86 commented on GitHub (Jul 9, 2025):

The above error may occur when I enable or disable some options in the advanced repository settings.

@AAEE86 commented on GitHub (Jul 9, 2025): The above error may occur when I enable or disable some options in the advanced repository settings.
Author
Owner

@wxiaoguang commented on GitHub (Jul 9, 2025):

Hmm, a regression from Add toggleClass function in dom.ts (#34063)

@wxiaoguang commented on GitHub (Jul 9, 2025): Hmm, a regression from Add toggleClass function in dom.ts (#34063)
Author
Owner

@wxiaoguang commented on GitHub (Jul 9, 2025):

Will be fixed by #35012 and #35013

@wxiaoguang commented on GitHub (Jul 9, 2025): Will be fixed by #35012 and #35013
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14729