You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read properties of null (reading 'functionType')
at ContentState2.updateCodeLanguage (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:131935:16)
at ContentState2.selectLanguage (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:131924:10)
at cb (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:143814:26)
at CodePicker.selectItem (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:147560:5)
at Object.click (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:148030:20)
at invokeHandler (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:92222:13)
at handleEvent (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:92233:5)
at HTMLLIElement.handler (file:///D:/Tools/MarkText/resources/app.asar/out/renderer/assets/index-B-PE276Q.js:92238:5)
Thank you for reporting this! The crash in updateCodeLanguage/selectLanguage (reading functionType on a null block) is caused by a stale DOM-to-block ID lookup in the old muyajs engine used in v0.17–0.19.
This entire code path has been replaced in the upcoming release. The new @muyajs/core engine (which the next release ships) redesigned the code-block language selector from scratch: it holds a direct block reference instead of resolving a block by DOM ID, and the selectItem handler has an explicit null guard at the entry point, so the null-deref path cannot occur.
If you are able to test a nightly or development build, we would appreciate a retest to confirm. Please reopen this issue if the crash persists on the new build.
Activity
Jocs commentedon Jun 22, 2026
Thank you for reporting this! The crash in
updateCodeLanguage/selectLanguage(readingfunctionTypeon a null block) is caused by a stale DOM-to-block ID lookup in the oldmuyajsengine used in v0.17–0.19.This entire code path has been replaced in the upcoming release. The new
@muyajs/coreengine (which the next release ships) redesigned the code-block language selector from scratch: it holds a direct block reference instead of resolving a block by DOM ID, and theselectItemhandler has an explicit null guard at the entry point, so the null-deref path cannot occur.If you are able to test a nightly or development build, we would appreciate a retest to confirm. Please reopen this issue if the crash persists on the new build.