From 00b912ee275f7c669c7279d8702f40c4b12af281 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 9 Mar 2012 23:06:09 +0100 Subject: [PATCH] * net/dbus.el: (dbus-property-handler): Return empty array if there are no properties. --- lisp/ChangeLog | 5 +++++ lisp/net/dbus.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7b9e00782b5..5a439d63036 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-03-09 Michael Albinus + + * net/dbus.el: (dbus-property-handler): Return empty array if + there are no properties. + 2012-03-09 Leo Liu * savehist.el (savehist-printable): Stricter check for string diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index fbc83bf1df0..feef78a305f 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -1039,7 +1039,8 @@ It will be registered for all objects created by `dbus-register-object'." (car (last key)) (list :variant (cdar (last (car val)))))))) dbus-registered-objects-table) - (list result)))))) + ;; Return the result, or an empty array. + (list :array (or result '(:signature "{sv}")))))))) ;; Initialize :system and :session buses. This adds their file -- 2.11.4.GIT