GNOME Bugzilla – Bug 750714
AllView: prevent accessing a NULL effect
Last modified: 2015-06-26 16:24:42 UTC
While playing around with screen rotation I noticed these stack traces: (gnome-shell:24655): Gjs-WARNING **: JS ERROR: Exception in callback for signal: allocated-size-changed: TypeError: this._scrollView.get_effect(...) is null AllView<.adaptToSize@resource:///org/gnome/shell/ui/appDisplay.js:756 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 AppDisplay<._onAllocatedSizeChanged@resource:///org/gnome/shell/ui/appDisplay.js:1031 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _emit@resource:///org/gnome/gjs/modules/signals.js:124 ViewStackLayout<.vfunc_allocate@resource:///org/gnome/shell/ui/appDisplay.js:890 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _parent@resource:///org/gnome/gjs/modules/lang.js:131 ControlsLayout<.vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:400 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 LayoutManager<._init/<@resource:///org/gnome/shell/ui/layout.js:204
Created attachment 304978 [details] [review] AllView: prevent accessing a NULL effect In some cases we might be allocated a size such that this._grid.topPadding and this._grid.bottomPadding are both 0 which means that the ScrollView fade effect gets removed. In that case don't try to access the effect since it will be NULL.
*** Bug 746312 has been marked as a duplicate of this bug. ***
Review of attachment 304978 [details] [review]: OK
Attachment 304978 [details] pushed as 7bdd1c6 - AllView: prevent accessing a NULL effect