Bug 1268993 - Null check for mBuilder, r=smaug
authorKershaw Chang <kechang@mozilla.com>
Sat, 24 Sep 2016 19:11:01 +0200
changeset 315235 71f595be2820bd86c76863b55bf2ce05ed702eb5
parent 315234 9c004ac338be00d7ceb5c38cc46f1219074d2ac4
child 315236 5880da58e1447162590d06196a875bb373aafe0c
push id32563
push userihsiao@mozilla.com
push dateMon, 26 Sep 2016 11:18:33 +0000
treeherderautoland@eb840c87b5fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1268993
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1268993 - Null check for mBuilder, r=smaug --- dom/presentation/ipc/PresentationBuilderChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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)