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

Issue Fix: nullreferenceexception 이슈 #41

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DaeSoeps
Copy link

경로: src/chat.ts

이슈: 특정 스트리머의 경우 chatChannelId 값이 없는경우가 간헐적으로 있음.
const serverId = Math.abs( this.options.chatChannelId.split("") .map(c => c.charCodeAt(0)) .reduce((a, b) => a + b) ) % 9 + 1
107번 라인의 위 코드에서 참조에러 (this.options.chatChannelId 이 null 인데 split을 사용함)

조치:
if(!this.options.chatChannelId){ return this.emit('NoChatChannelId', await this.client.live.status(this.options.channelId)); }
this.options.chatChannelId 값이 없을때, return 하였습니다.
this.emit을 통해 소켓으로 해당 스트리머의 status 값도 넘겨받을수 있도록 수정하였습니다.

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.

1 participant