From a quick look, would this simple test fix the issue?
If for some reason we're unable to get a UDisksObject instance, just bail out and let udisks_daemon_wait_for_object_sync() continue with the loop and call the wait_func again after a short break. Hopefully the object we're looking for will arrive until then.
Created attachment 91828
proposed patch
From a quick look, would this simple test fix the issue?
If for some reason we're unable to get a UDisksObject instance, just bail out and let udisks_ daemon_ wait_for_ object_ sync() continue with the loop and call the wait_func again after a short break. Hopefully the object we're looking for will arrive until then.