intel / dleyna-control

dLeyna-control is a Digital Media Player written in python to demonstrate how to use the dleyna DMS APIs. It detects Digital Media Servers on the local area network and allows users to browse, search and play their contents.
https://01.org/dleyna/
GNU Lesser General Public License v2.1
8 stars 12 forks source link

[GenericModel] Set path to "0" if iterator is not set #40

Closed jku closed 11 years ago

jku commented 11 years ago

It's not clear why get_path() is called with a tree_iter that is not yet defined -- in other words there may be some application logic bug hidden here -- but this should make the call safe: Return the "0" path when iterator is not initialized (tree_iter.user_data is null or 0, depending on gobject-introspection version).

jku commented 11 years ago

Ooops, I'll just add mention of the issue number...