diff --git a/OsmAnd/src/net/osmand/plus/transport/TransportStopRoute.java b/OsmAnd/src/net/osmand/plus/transport/TransportStopRoute.java index 9ab0d0c525..efa3dd4997 100644 --- a/OsmAnd/src/net/osmand/plus/transport/TransportStopRoute.java +++ b/OsmAnd/src/net/osmand/plus/transport/TransportStopRoute.java @@ -59,8 +59,9 @@ public class TransportStopRoute { RenderingRulesStorage rrs = ctx.getRendererRegistry().getCurrentSelectedRenderer(); RenderingRuleSearchRequest req = new RenderingRuleSearchRequest(rrs); req.setBooleanFilter(rrs.PROPS.R_NIGHT_MODE, nightMode); - String typeStr = route.getColor() == null || route.getColor().isEmpty() ? - type.getRendeAttr() : route.getColor(); + String color = route.getColor(); + String typeStr = color == null || color.isEmpty() ? + type.getRendeAttr() : color; if (req.searchRenderingAttribute(typeStr)) { cachedColor = req.getIntPropertyValue(rrs.PROPS.R_ATTR_COLOR_VALUE); }