[Pkg-mozext-commits] [tabmixplus] 50/147: Make sure that corrupted session.rdf don't stops the closing process, GetResource throw when its argument is null or undefined

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 72ee5e118f87647fd8779c89e62b20d1f2db5e93
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Dec 5 21:25:34 2016 +0200

    Make sure that corrupted session.rdf don't stops the closing process, GetResource throw when its argument is null or undefined
---
 chrome/content/session/session.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chrome/content/session/session.js b/chrome/content/session/session.js
index cd08405..ea872d3 100644
--- a/chrome/content/session/session.js
+++ b/chrome/content/session/session.js
@@ -1817,6 +1817,10 @@ TabmixSessionManager = {
   },
 
   deleteSession: function SM_deleteSession(nodLabel, prop, value) {
+    // make sure that corrupted session.rdf don't stops the closing process
+    if (!nodLabel) {
+      return;
+    }
     var rdfNode = this.RDFService.GetResource(nodLabel);
     var container = this.initContainer(rdfNode);
     if (!this.containerEmpty(nodLabel)) this.deleteWithProp(container, prop, value);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list