Skip to content

Fix crash when calling console.log(null)#1821

Closed
Sri Lakshmi Polavarapu (SriLakshmiPolavarapu) wants to merge 1 commit intoelide-dev:mainfrom
SriLakshmiPolavarapu:fix-console-log-null
Closed

Fix crash when calling console.log(null)#1821
Sri Lakshmi Polavarapu (SriLakshmiPolavarapu) wants to merge 1 commit intoelide-dev:mainfrom
SriLakshmiPolavarapu:fix-console-log-null

Conversation

@SriLakshmiPolavarapu
Copy link
Copy Markdown

@SriLakshmiPolavarapu Sri Lakshmi Polavarapu (SriLakshmiPolavarapu) commented Dec 12, 2025

Ready for review Powered by Pull Request Badge

Fixes #1812

Calling console.log(null) could crash due to nullable varargs passed from JavaScript into Kotlin.
This change safely handles null arguments and logs "null" instead.

@sgammon
Copy link
Copy Markdown
Member

Hey Sri Lakshmi Polavarapu (@SriLakshmiPolavarapu), thank you for your PRs 🥳 this one has been fixed. Another contributor beat you to the punch by only a few days. That was merged, so this one will be closed, but your newer PR at #1844 looks great. Make sure to rebase that one so you gain the new fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

console.log crashes when handling a null argument

2 participants