[Pkg-mozext-commits] [firebug] 06/21: Avoid NPE (related to #7928)

David Prévot taffit at moszumanska.debian.org
Tue Sep 15 16:17:05 UTC 2015


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

taffit pushed a commit to branch master
in repository firebug.

commit bfe323ffd55c713b2306e8f48ce72554312b754c
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Wed Aug 5 18:04:42 2015 +0200

    Avoid NPE (related to #7928)
---
 extension/content/firebug/net/netReps.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/net/netReps.js b/extension/content/firebug/net/netReps.js
index 46152d1..7fbd222 100644
--- a/extension/content/firebug/net/netReps.js
+++ b/extension/content/firebug/net/netReps.js
@@ -1707,7 +1707,9 @@ Firebug.NetMonitor.NetInfoHeaders = domplate(Rep, new EventSource(),
         var file = netInfoBox.repObject;
 
         // Use the original file object (workaround for issue #7928)
-        file = file.context.netProgress.getRequestFile(file.request) || file;
+        if (file.context) {
+          file = file.context.netProgress.getRequestFile(file.request) || file;
+        }
 
         if (target.sourceDisplayed)
         {

-- 
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