Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 5e41a1d

Browse files
committed
Bug 1278439 - Adding a missing prefs service null check in startupcache/. r=froydnj.
--HG-- extra : rebase_source : 1a7552207edf8c283fa3fe4d3b31af6c89ee141b
1 parent 2715b3a commit 5e41a1d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

startupcache/test/TestStartupCache.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,12 @@ int main(int argc, char** argv)
396396
return 1;
397397

398398
nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
399+
if (!prefs) {
400+
fail("prefs");
401+
return 1;
402+
}
399403
prefs->SetIntPref("hangmonitor.timeout", 0);
400-
404+
401405
int rv = 0;
402406
nsresult scrv;
403407

0 commit comments

Comments
 (0)