Chromium Code Reviews| Index: webrtc/api/android/jni/peerconnection_jni.cc |
| diff --git a/webrtc/api/android/jni/peerconnection_jni.cc b/webrtc/api/android/jni/peerconnection_jni.cc |
| index 8b5a69251be33180fcfb5170046a4a023a6e4b92..23c65735f75d79198ec6b8e17736792406c118a6 100644 |
| --- a/webrtc/api/android/jni/peerconnection_jni.cc |
| +++ b/webrtc/api/android/jni/peerconnection_jni.cc |
| @@ -1726,7 +1726,10 @@ JOW(jobject, PeerConnection_createDataChannel)( |
| // vararg parameter as 64-bit and reading memory that doesn't belong to the |
| // 32-bit parameter. |
| jlong nativeChannelPtr = jlongFromPointer(channel.get()); |
| - RTC_CHECK(nativeChannelPtr) << "Failed to create DataChannel"; |
| + if (!nativeChannelPtr) { |
| + LOG(LS_WARNING) << "Failed to create DataChannel"; |
|
AlexG
2016/07/26 05:16:21
LS_ERROR?
Taylor Brandstetter
2016/07/26 16:51:34
Done.
|
| + return nullptr; |
| + } |
| jclass j_data_channel_class = FindClass(jni, "org/webrtc/DataChannel"); |
| jmethodID j_data_channel_ctor = GetMethodID( |
| jni, j_data_channel_class, "<init>", "(J)V"); |