Skip to content

Commit

Permalink
Bug 1278439 - Adding a missing prefs service null check in startupcac…
Browse files Browse the repository at this point in the history
…he/. r=froydnj.

--HG--
extra : rebase_source : 1a7552207edf8c283fa3fe4d3b31af6c89ee141b
  • Loading branch information
nnethercote committed Jul 14, 2016
1 parent 2715b3a commit 5e41a1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion startupcache/test/TestStartupCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,12 @@ 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;
nsresult scrv;

Expand Down

0 comments on commit 5e41a1d

Please sign in to comment.