Commit a0ba16c
authored
Fix City constructor from empty subdivisions
Fixes error:
```Cannot assign null to property GeoIp2\Model\City::$mostSpecificSubdivision of type GeoIp2\Record\Subdivision```
Which happens for example for IP from Hongkong.1 parent 7d36f18 commit a0ba16c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments