I tried to draw a line on a graphic layer added to map with the lines of code below. I get a geometry exception. What am I doing wrong? Segment segment = new Line(); segment.setStart(startPoint); segment.setEnd(endPoint); Log.d("SEGMENT", "x: " + segment.getStartX() + "y: " + segment.getStartY()); Symbol lineSymbol = new SimpleLineSymbol(Color.BLUE, 4); someGraphicsLayer.addGraphic(new Graphic(segment, lineSymbol));