diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js index 9f4ae759d..a46b1b752 100644 --- a/src/MarkerClusterGroup.js +++ b/src/MarkerClusterGroup.js @@ -261,7 +261,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({ //Returns true if the given layer is in this MarkerClusterGroup hasLayer: function (layer) { - if (layer._noHas) { + if (!layer || layer._noHas) { return false; }