mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
objectManager: handle object manager sending empty array
If the service implementing the object manager returns a 0 length array we currently throw an exception. This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=780403
This commit is contained in:
parent
0e922eee36
commit
9c4e875de4
1 changed files with 5 additions and 0 deletions
|
|
@ -193,6 +193,11 @@ const ObjectManager = new Lang.Class({
|
|||
|
||||
let [objects] = result;
|
||||
|
||||
if (!objects) {
|
||||
this._tryToCompleteLoad();
|
||||
return;
|
||||
}
|
||||
|
||||
let objectPaths = Object.keys(objects);
|
||||
for (let i = 0; i < objectPaths.length; i++) {
|
||||
let objectPath = objectPaths[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue