Commit 5e41a1de authored by Nicholas Nethercote's avatar Nicholas Nethercote
Browse files

Bug 1278439 - Adding a missing prefs service null check in startupcache/. r=froydnj.

--HG--
extra : rebase_source : 1a7552207edf8c283fa3fe4d3b31af6c89ee141b
parent 2715b3a3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -396,6 +396,10 @@ int main(int argc, char** argv)
    return 1;

  nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
  if (!prefs) {
    fail("prefs");
    return 1;
  }
  prefs->SetIntPref("hangmonitor.timeout", 0);

  int rv = 0;