Closed patrick-tresp closed 3 months ago
Hello @patrick-tresp thank you for your PR, can you revert the version increment, it is made during release only. Then I will test and release.
Notice that next release will also include this fix for nil sender #770
Hello @patrick-tresp thank you for your PR, can you revert the version increment, it is made during release only. Then I will test and release.
nice, thank you ,reverted already.
Thx will for review fix. I will merge and attempt to release next week after testing.
I have addressed the issue of Null Pointer Exceptions in the iosrtcPlugin#RTCPeerConnection_RTCRtpSender_replaceTrack() method. I am using this plugin in a capacitor project where it can lead to app crashes without checking for nil values before accessing their properties.
Early Existence Checks: I have introduced early existence checks to ensure that critical objects, such as pluginRTCPeerConnection and pluginRTCRptSender, are not nil before attempting to use them.
Graceful Handling of Missing Objects: In case any of these objects are not found, I now emit error messages with informative details to assist with debugging and troubleshooting.
Safety for Optional Values: I have utilized Swift's optional binding (if let) to safely unwrap and use optional values like pluginMediaStreamTrack.