warmshowers/wsandroid — pull request #157 by rfay (2014-12-22 22:34:35+00:00)
Title: Handle case where maps setup returns null

I noticed over in the Play Store crash reports a NullPointerException and tracked it a bit.

[Report is here](https://play.google.com/apps/publish/?dev_acc=03117883992032047165#ErrorClusterDetailsPlace:p=fi.bitrite.android.ws&et=CRASH&sh=false&lr=LAST_7_DAYS&ecn=java.lang.NullPointerException&tf=Maps2Activity.java&tc=fi.bitrite.android.ws.activity.Maps2Activity&tm=onCreate&nid&an&c&s=new_status_desc)

It turns out getMap() can return null, resulting in null pointer problems after that. And it also turns out that in Play Services 6.5 they've deprecated getMap and replace with getMapAsync(), which is guaranteed to return a map. This little hack just notifies the user instead of crashing. The real fix is getting 6.5 in there.