cgeo/c-geo-opensource — comment on commit 0c5935c797edeebbd02ea43c02ccb09a76e9077a
File:  line 0
By Bananeweizen:

I suggest to also fix this by checking for null in the DistanceParser and returning null then. Otherwise the DistanceParser is not self contained, but depends on null checks around its callers. That's bad from the viewpoint of encapsulation and modularity.