commit | 588783adcd2bcf1a788cfd318e1394f241e9a78f | [log] [tgz] |
---|---|---|
author | skvlad <skvlad@webrtc.org> | Thu Aug 11 14:29:25 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Aug 11 21:29:32 2016 +0000 |
tree | 5362013ad90623ea4333e802db2f052688fe2e04 | |
parent | fe1ffb141bd6e9ce010346e4dd5d44054e57338e [diff] |
Return nil from RTCPeerConnectionFactory when creation fails RTCPeerConnectionFactory.createPeerConnection did not check the return value of the native createPeerConnection() - so when the native PC fails to be created, it could end up attempting to use a null pointer. The change makes it return nil when the creation fails. The application can then detect and respond to the failure. Review-Url: https://codereview.webrtc.org/2240633004 Cr-Commit-Position: refs/heads/master@{#13732}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.