~cmiller/ubuntuone-android-contacts/null-pointer-mediasyncadapterservice-ordersources-bug650557

Viewing all changes in revision 386.

  • Committer: Chad Miller
  • Date: 2010-10-20 17:18:03 UTC
  • Revision ID: chad.miller@canonical.com-20101020171803-xxbr9cia86kbl27p
Try to avoid a possible threading data mangling by making methods of the
sync-source classes synchronized to each manager instance.

The problem also may be that the source is unknown in the environment and the
hard-coded source list has more than the device supports, in which case we skip
that item.  That may be wrong, but I don't know what right would be in that
case, and failing with NullPointerException is proibably worse.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: