GetMap() will never return NULL as it has an ASSERT inside. The method you are looking for here is FindMap()