cgeo/c-geo-opensource — pull request #1957 by RuneHL (2012-08-14 15:05:30+00:00)
Title: Fix for null coords to allow "Store for offline"

Some caches are not loaded with coords and this makes the method Viewport.contains throw a nullpointer exception leading to the menu item "Store for offline" in the map view to stay inactive.

The cause of the coords not being loaded has to be resolved elsewhere but this fix will allow loading for the majority of caches in the view.

Even if this fix does not solve the cause it still ensure that the method functions correct (by assuming that a cache with no coords is not contained in the viewport.