From ffe028fe5163c8560c42d8c89531101710b698f7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 19 Dec 2014 19:37:23 +0100 Subject: [PATCH] Fix java renderer --- OsmAnd/src/net/osmand/plus/render/OsmandRenderer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/render/OsmandRenderer.java b/OsmAnd/src/net/osmand/plus/render/OsmandRenderer.java index 52c4693d29..8b169d1522 100644 --- a/OsmAnd/src/net/osmand/plus/render/OsmandRenderer.java +++ b/OsmAnd/src/net/osmand/plus/render/OsmandRenderer.java @@ -382,10 +382,16 @@ public class OsmandRenderer { } protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf) { + if(ico == null) { + return; + } cv.drawBitmap(ico, rf.left, rf.top, paintIcon); } protected void drawBitmap(Canvas cv, Bitmap ico, RectF rf, Rect src) { + if(ico == null) { + return; + } cv.drawBitmap(ico, src, rf, paintIcon); }