[Pkg-mozext-commits] [firebug] 09/22: Avoid NPE

David Prévot taffit at moszumanska.debian.org
Sat Jul 19 21:45:51 UTC 2014


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

taffit pushed a commit to branch master
in repository firebug.

commit 9e5b3661f1acbd724085f155e193f6ef6b1d05cf
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Tue Jul 1 15:15:04 2014 +0200

    Avoid NPE
---
 extension/content/firebug/chrome/statusPath.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extension/content/firebug/chrome/statusPath.js b/extension/content/firebug/chrome/statusPath.js
index fe86e24..16689bd 100644
--- a/extension/content/firebug/chrome/statusPath.js
+++ b/extension/content/firebug/chrome/statusPath.js
@@ -143,7 +143,11 @@ var StatusPath = Obj.extend(Module,
         var panelStatus = Firebug.chrome.getElementById("fbPanelStatus");
         var panelStatusSeparator = Firebug.chrome.getElementById("fbStatusSeparator");
         var panelBar1 = Firebug.chrome.getElementById("fbPanelBar1");
+
         var panel = panelBar1.selectedPanel;
+        if (!panel)
+          return;
+
         var currentObject = panel ? panel.getCurrentObject() : null;
 
         panelStatus.setAttribute("direction", panel.statusSeparator === ">" ? "right" : "left");

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



More information about the Pkg-mozext-commits mailing list