Skip to content

Commit

Permalink
Merge pull request #4 from kbornhorst/patch-2
Browse files Browse the repository at this point in the history
Fix for Issue #1
  • Loading branch information
shalperin committed Oct 1, 2013
2 parents ad2ed59 + 8dcd6dc commit 24a079d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OpenTreeMap/src/org/azavea/lists/NearbyList.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ private String getDiameter(Plot p) {

private String getSpecies(Plot p) {
String species;
String speciesDefault = "Species missing";
try {
species = p.getTree().getSpeciesName();
if (species == null) {
species = speciesDefault;
}
} catch (Exception e) {
species = "Species missing";
species = speciesDefault;
}
return species;
}
Expand Down

0 comments on commit 24a079d

Please sign in to comment.