Skip to content

Commit

Permalink
fix potential crash with empty attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Nov 2, 2012
1 parent ab21104 commit 98414ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MapView/Map/RMAttributionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ - (id)initWithMapView:(RMMapView *)mapView
if ([attribution length])
[attribution appendString:@" "];

[attribution appendString:[tileSource shortAttribution]];
if ([tileSource shortAttribution])
[attribution appendString:[tileSource shortAttribution]];
}
}

Expand Down

0 comments on commit 98414ff

Please sign in to comment.