Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeat Schwarzentrub2021-07-16 07:51:12 +0000
committerBeat Schwarzentrub2021-07-16 11:50:52 +0000
commit8f336b5757cd3e5a1dd12fbf6dfe5fa6524871a3 (patch)
treee36dc1e6c7eb12c24f1c8cb099f9a7db27794601
parent28217576faa72a6a6a902599ceccf68f301b82ae (diff)
downloadorg.eclipse.scout.rt-8f336b5757cd3e5a1dd12fbf6dfe5fa6524871a3.tar.gz
org.eclipse.scout.rt-8f336b5757cd3e5a1dd12fbf6dfe5fa6524871a3.tar.xz
org.eclipse.scout.rt-8f336b5757cd3e5a1dd12fbf6dfe5fa6524871a3.zip
GlassPaneRenderer: add null check
Change-Id: I4e6a4bee0df529c691c45e4d443f139afea52188 Reviewed-on: https://git.eclipse.org/r/c/scout/org.eclipse.scout.rt/+/183119 Tested-by: Scout Bot <scout-bot@eclipse.org> Reviewed-by: Beat Schwarzentrub <bsh@bsiag.com>
-rw-r--r--eclipse-scout-core/src/glasspane/GlassPaneRenderer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclipse-scout-core/src/glasspane/GlassPaneRenderer.js b/eclipse-scout-core/src/glasspane/GlassPaneRenderer.js
index ba99a0ebf8..4127631f37 100644
--- a/eclipse-scout-core/src/glasspane/GlassPaneRenderer.js
+++ b/eclipse-scout-core/src/glasspane/GlassPaneRenderer.js
@@ -81,7 +81,8 @@ export default class GlassPaneRenderer {
// Glasspanes in popup-windows must be visible, otherwise the user cannot recognize that the popup
// is blocked, since the widget that blocks (e.g a message-box) may be opened in the main-window.
- if ($glassPane.window(true).popupWindow) {
+ let window = $glassPane.window(true);
+ if (window && window.popupWindow) {
$glassPane.addClass('dark');
}
this._$glassPanes.push($glassPane);

Back to the top