From 940813823083b1f9d09901853b88e2e6685f7fd9 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 10 Nov 2014 11:36:47 -0500 Subject: [PATCH] Fix NPE --- static/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/app.js b/static/js/app.js index b3f655ed9..623797f9d 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2585,7 +2585,10 @@ quayApp.directive('focusablePopoverContent', ['$timeout', '$popover', function ( $body = $('body'); var hide = function() { $body.off('click'); + + if (!scope) { return; } scope.$apply(function() { + if (!scope) { return; } scope.$hide(); }); };