public static void setVisibility(final View view, final int visibility) {
        if (view == null) {
            return;
        }
        view.setVisibility(visibility);
    }
Sets visibility for given view (without crashing on null view)
main/src/main/java/cgeo/geocaching/ui/ViewUtils.java