sugarlabs/sugar — pull request #365 by SAMdroid-apps (2014-05-02 23:11:16+00:00)
Title: Stop a null device crashing the journal

This was a very weird issue.

I was using sugar build (no devices plugged in) and whenever I clicked on the detail view in the journal it would show it to me without any content. It was because a call to the `get_mount_color` function had a null path, crashing `os.path.basename`.

The random color never shows in the ui, but prevents a crash :smile: