Created attachment 28479 [details] [review] Half-done... We shouldn't crash when we have invalid input (or the developers using PolicyKit might think it's broken rather than their apps).
Just did this http://cgit.freedesktop.org/PolicyKit/commit/?id=eab94aa83209559b2c3f48490778177f1f3b6f97 http://cgit.freedesktop.org/PolicyKit/commit/?id=07186ab99e66aba27a10b43f834d04fbdee302ca
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.