fix
This commit is contained in:
parent
bf4cd427f6
commit
29d4379b84
1 changed files with 1 additions and 2 deletions
|
@ -87,9 +87,8 @@ public class OsmMapUtils {
|
|||
}
|
||||
|
||||
public static LatLon getComplexPolyCenter(Collection<Node> outer, List<List<Node>> inner) {
|
||||
if (outer != null && outer.size() <= 5 && inner == null) {
|
||||
if (!Algorithms.isEmpty(outer) && outer.size() <= 5 && inner == null) {
|
||||
List<Node> sub = new ArrayList<>(outer);
|
||||
|
||||
return getWeightCenterForNodes(sub.subList(0, sub.size()-1));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue