dschuermann/offline-calendar — pull request #27 by drizzd (2013-11-30 15:04:58+00:00)
Title: Check if calender insert failed with CMs privacy guard

If CyanogenMod's privacy guard is enabled, ContentResolver.insert
returns null. Before the result is checked, we pass the result to the
logger and give rise to an unhandled null pointer exception.

Put the statements in the right order to fix this. The user now gets the
appropriate warning.