Bug 1268993 - Null check for mBuilder. r=smaug, a=ritu
authorKershaw Chang <kechang@mozilla.com>
Sat, 24 Sep 2016 19:11:01 +0200
changeset 355790 d2a4f2fc6716a1ba6e78c93342eac761f7524599
parent 355789 5a19443bce1d30eed8d832c9c10fe80d0ccf4902
child 355791 fef3ee4668579fc66566c77f240f1c0e10dba886
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, ritu
bugs1268993
milestone51.0a2
Bug 1268993 - Null check for mBuilder. r=smaug, a=ritu
dom/presentation/ipc/PresentationBuilderChild.cpp
--- a/dom/presentation/ipc/PresentationBuilderChild.cpp
+++ b/dom/presentation/ipc/PresentationBuilderChild.cpp
@@ -90,17 +90,17 @@ PresentationBuilderChild::RecvOnAnswer(c
     return false;
   }
   return true;
 }
 
 bool
 PresentationBuilderChild::RecvOnIceCandidate(const nsString& aCandidate)
 {
-  if (NS_WARN_IF(NS_FAILED(mBuilder->OnIceCandidate(aCandidate)))) {
+  if (NS_WARN_IF(mBuilder && NS_FAILED(mBuilder->OnIceCandidate(aCandidate)))) {
     return false;
   }
   return true;
 }
 
 // nsPresentationSessionTransportBuilderListener
 NS_IMETHODIMP
 PresentationBuilderChild::OnSessionTransport(nsIPresentationSessionTransport* aTransport)