User753101303 posted
Hi,
And StringFromURL is called from? Do you check the return value? Turning an exception into a return value is often considered bad as it make easy to unintentionally hide exceptions or misinterpret what actually happens.
Before reading the code you should always first find what actually happens.