Check whether getSystemService() returns null
We call Context#getSystemService() in various places without checking the return value. Apparently it can return null, so we should check it.
We call Context#getSystemService() in various places without checking the return value. Apparently it can return null, so we should check it.