# MYLocation p173 func configure()

**URL:** <https://forums.kodeco.com/t/mylocation-p173-func-configure/35461>\
**Category:** iOS Apprentice\
**Created:** [October 11, 2017, 2:18pm UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461 "2017-10-11T14:18:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbeaunes](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@pbeaunes](https://forums.kodeco.com/u/pbeaunes)\
**Post date:** [October 11, 2017, 2:18pm UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461/1 "2017-10-11T14:18:33Z")

</div>

Hi all,  
I m following tutorial 3 v5 and I have an “Thread1: EXC\_Bad” error message when I run the app.  
Could someone help me to fix it ?

this is the code:

func configure(for location: Location) {  
if location.locationDescription.isEmpty {  
descriptionLabel.text = “(No Description)”  
} else {  
descriptionLabel.text = location.locationDescription  
}

```
	if let placemark = location.placemark {
		var text = ""
		if let s = placemark.subThoroughfare {
			text += s + " "
		}
		if let s = placemark.thoroughfare {
			text += s + ", "
		}
		if let s = placemark.locality {
			text += s
		}
		addressLabel.text = text
	} else {
		addressLabel.text = String(format:
			"Lat: %.8f, Long: %.8f", location.latitude, location.longitude)
	}
}

```

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [October 11, 2017, 2:45pm UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461/2 "2017-10-11T14:45:06Z")

</div>

What’s the line on which you get the crash?

Also, sharing a download link to your project is the easiest way to get help with a crash since then anybody interested can download it and experience the crash for themselves and then be able to help you faster 🙂

---

<div class="post-metadata">

**Author:** ![pbeaunes](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@pbeaunes](https://forums.kodeco.com/u/pbeaunes)\
**Post date:** [October 11, 2017, 2:51pm UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461/3 "2017-10-11T14:51:32Z")

</div>

Fahim, thank u for your answer.

1. the crash is at this level “descriptionLabel.text = location.locationDescription”
2. how can I do a download link to my project?

Thx.

Patrick

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [October 11, 2017, 3:15pm UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461/4 "2017-10-11T15:15:03Z")

</div>

The most likely culprit would be that you forgot to connect descriptionLabel to its outlet in the storyboard. Check the storyboard to see if you’ve correctly connected the label to its outlet.

If that is correct, then probably uploading a copy of your project somewhere (like DropBox) and then providing a link to that so others can download it and try out the code might help. Simply copy the whole project folder to DropBox, or ZIP up the project folder and then upload the ZIP file to DropBox. Then you can get a link from DropBox that you can share with others. There are also other services besides DropBox which would allow you to do essentially the same thing 🙂

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [March 27, 2018, 6:18am UTC](https://forums.kodeco.com/t/mylocation-p173-func-configure/35461/5 "2018-03-27T06:18:34Z")

</div>

Closed on March 27, 2018, 6:18am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
