Code example for MalformedURLException

Methods: e, getMessage

0
        try { 
            _photoURL = new URL("http://google.com/"
                    + htmlNode.select(HTMLQuery.PortraitURL).first()
                            .attr("src")); 
        } catch (MalformedURLException e) {
            Log.e(this.getClass().getName(), e.getMessage(), e);
            _photoURL = null;
        } 
 
        Element phoneNumElement = htmlNode.select(HTMLQuery.PhoneNumber)
                .first(); 
        if (phoneNumElement != null) { 
            _phoneNumberDisplay = phoneNumElement.text();
            _phoneNumber = getRawPhoneNumber(_phoneNumberDisplay);
        } 
    } 
 
    public Person(JSONObject jsonPerson) throws JSONException
    { 
        _phoneNumber = jsonPerson.getString(JSONKeys.PhoneNumber);
        _phoneNumberDisplay = jsonPerson.getString(JSONKeys.PhoneNumberDisplay);