2013년 1월 2일 수요일

mapView getItemsAtLocation nullPointerException

 The error was arising when there was an itemizedoverlay, which had no overlayitems, on the mapview. The following code solved the error:


if(itemizedoverlayCurrent.hasItems()) overlays.add(itemizedoverlayCurrent); 
if(itemizedoverlayCompleted.hasItems())overlays.add(itemizedoverlayCompleted);  
if(itemizedoverlayFuture.hasItems())overlays.add(itemizedoverlayFuture);




댓글 없음:

댓글 쓰기