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(whisper): Fixes possible NPE. #563

Merged
merged 1 commit into from
Oct 28, 2024
Merged

fix(whisper): Fixes possible NPE. #563

merged 1 commit into from
Oct 28, 2024

Conversation

damencho
Copy link
Member

Fixes:
2024-10-26 19:23:56.896 INFO: [254] WhisperWebsocket.disconnectParticipant#353: All participants have left, disconnecting from Whisper transcription server. 2024-10-26 19:23:56.897 SEVERE: [254] net.java.sip.communicator.util.UtilActivator.uncaughtException: An uncaught exception occurred in thread=Thread[jigasi-whisper-wspool-7-thread-2,5,main], and message was: Cannot invoke "org.eclipse.jetty.websocket.api.Session.getRemote()" because "this.wsSession" is null java.lang.NullPointerException: Cannot invoke "org.eclipse.jetty.websocket.api.Session.getRemote()" because "this.wsSession" is null
at org.jitsi.jigasi.transcription.WhisperWebsocket.disconnectParticipant(WhisperWebsocket.java:354)
at org.jitsi.jigasi.transcription.WhisperConnectionPool.endInternal(WhisperConnectionPool.java:99)
at org.jitsi.jigasi.transcription.WhisperConnectionPool.lambda$end$0(WhisperConnectionPool.java:86)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)

Fixes:
2024-10-26 19:23:56.896 INFO: [254] WhisperWebsocket.disconnectParticipant#353: All participants have left, disconnecting from Whisper transcription server.
2024-10-26 19:23:56.897 SEVERE: [254] net.java.sip.communicator.util.UtilActivator.uncaughtException: An uncaught exception occurred in thread=Thread[jigasi-whisper-wspool-7-thread-2,5,main], and message was: Cannot invoke "org.eclipse.jetty.websocket.api.Session.getRemote()" because "this.wsSession" is null
java.lang.NullPointerException: Cannot invoke "org.eclipse.jetty.websocket.api.Session.getRemote()" because "this.wsSession" is null
	at org.jitsi.jigasi.transcription.WhisperWebsocket.disconnectParticipant(WhisperWebsocket.java:354)
	at org.jitsi.jigasi.transcription.WhisperConnectionPool.endInternal(WhisperConnectionPool.java:99)
	at org.jitsi.jigasi.transcription.WhisperConnectionPool.lambda$end$0(WhisperConnectionPool.java:86)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
@damencho damencho merged commit 6fabbf8 into master Oct 28, 2024
2 checks passed
@damencho damencho deleted the npe-whisper branch October 28, 2024 13:26
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.

2 participants