summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-08-17 13:56:32 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-08-17 13:56:32 +0200
commit7a7d5105c9431a744ec117308e3fae02b265c5d8 (patch)
treec9bd9d3481fce3bc19a550bc8af98164fdbe0082 /plugins
parentcdb1cb0a227f833b54a54aa5cad500441a8120fb (diff)
UnityScreen: avoid deferencing a null pointer during introspection
(bzr r4163.7.9)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 7f794a79c..23ddd44ad 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -4787,7 +4787,7 @@ void ScreenIntrospection::AddProperties(debug::IntrospectionData& introspection)
Introspectable::IntrospectableList ScreenIntrospection::GetIntrospectableChildren()
{
- IntrospectableList children({uScreen->spread_widgets_->GetFilter().get()});
+ IntrospectableList children({uScreen->spread_widgets_ ? uScreen->spread_widgets_->GetFilter().get() : nullptr});
for (auto const& win : screen_->windows())
children.push_back(UnityWindow::get(win));