Commit 860cc4e
Fix empty-result crash when no elements match groups with na_color=None
When all elements are filtered out by groups filtering, downstream code
crashes: get_extent returns NaN/Inf for points, and GeoDataFrame operations
fail on empty geometry for shapes. Add early returns to handle this edge case.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6a34619 commit 860cc4e
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
871 | 873 | | |
872 | 874 | | |
873 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
874 | 879 | | |
875 | 880 | | |
876 | 881 | | |
| |||
881 | 886 | | |
882 | 887 | | |
883 | 888 | | |
884 | | - | |
885 | 889 | | |
886 | 890 | | |
887 | 891 | | |
| |||
0 commit comments