<NME> DirectionImage.java
<BEF> package cgeo.geocaching.ui;

import cgeo.geocaching.network.HtmlImage;

import android.graphics.drawable.BitmapDrawable;

import io.reactivex.rxjava3.core.Observable;

public class DirectionImage {

    private static final HtmlImage HTML_IMAGE = new HtmlImage(HtmlImage.SHARED, false, false, false);

    private DirectionImage() {
        // utility class
    }

    /**
     * Retrieve the direction image corresponding to the direction code.
        final HttpResponse httpResponse =
                    cgBase.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
        if (httpResponse != null) {
            LocalStorage.saveEntityToFile(httpResponse.getEntity(), getDirectionFile(geocode, true));
        }
    }


}

<MSG> fix #1238: Fatal Error while updating stored caches
<DFF> @@ -19,7 +19,7 @@ public class DirectionImage {
         final HttpResponse httpResponse =
                     cgBase.request("http://www.geocaching.com/ImgGen/seek/CacheDir.ashx", new Parameters("k", code), false);
         if (httpResponse != null) {
-            LocalStorage.saveEntityToFile(httpResponse.getEntity(), getDirectionFile(geocode, true));
+            LocalStorage.saveEntityToFile(httpResponse, getDirectionFile(geocode, true));
         }
     }
 

fix #1238: Fatal Error while updating stored caches