Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Audio stop() #25336

Merged
merged 2 commits into from
Jan 27, 2023
Merged

Fix Audio stop() #25336

merged 2 commits into from
Jan 27, 2023

Conversation

maxscharwath
Copy link
Contributor

@maxscharwath maxscharwath commented Jan 26, 2023

Related issue:

Description

Fix a bug appears when calling stop() without a source. If the source is null, an Exception is thrown.
Uncaught TypeError: Cannot read properties of null (reading 'stop')

Fix stop()

When source is null, the method will throw an Exception
@mrdoob
Copy link
Owner

mrdoob commented Jan 27, 2023

Probably better to check that is not null.

@mrdoob mrdoob added this to the r150 milestone Jan 27, 2023
@mrdoob mrdoob merged commit 596a987 into mrdoob:dev Jan 27, 2023
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.

Fix Audio stop()
2 participants