mapbox / Simple-KML

Simple KML is a simple & lightweight parsing library for KML written in Objective-C for the iOS platform.
BSD 3-Clause "New" or "Revised" License
208 stars 58 forks source link

Fix crash when attempting to open an empty file #29

Closed JesseCrocker closed 8 years ago

JesseCrocker commented 10 years ago

The crash actually happens in CMXMLDocument.m, because it's not checking if the result of xmlGetLastError() is NULL, but if CMXMLDocument only works with non-empty strings, then it shouldn't get passed an empty string.