quick fix for null
This commit is contained in:
parent
7125f0f5c4
commit
bf4cd427f6
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ public class OsmMapUtils {
|
|||
}
|
||||
|
||||
public static LatLon getComplexPolyCenter(Collection<Node> outer, List<List<Node>> inner) {
|
||||
if (outer.size() <= 5 && inner == null) {
|
||||
if (outer != null && 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