* net/dbus.el: (dbus-property-handler): Return empty array if
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 9 Mar 2012 22:06:09 +0000 (23:06 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 9 Mar 2012 22:06:09 +0000 (23:06 +0100)
there are no properties.

lisp/ChangeLog
lisp/net/dbus.el

index 3edff65..0684afd 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-09  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/dbus.el: (dbus-property-handler): Return empty array if
+       there are no properties.
+
 2012-03-09  Leo Liu  <sdl.web@gmail.com>
 
        * savehist.el (savehist-printable): Stricter check for string
index fbc83bf..feef78a 100644 (file)
@@ -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}"))))))))
 
  \f
 ;; Initialize :system and :session buses.  This adds their file