# Chapter 9 Final Project Crash

**URL:** <https://forums.kodeco.com/t/chapter-9-final-project-crash/90610>\
**Category:** Design Patterns by Tutorials\
**Created:** [December 6, 2019, 5:51pm UTC](https://forums.kodeco.com/t/chapter-9-final-project-crash/90610 "2019-12-06T17:51:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmw41](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lmw41/32/110937_2.png) [@lmw41](https://forums.kodeco.com/u/lmw41)\
**Post date:** [December 6, 2019, 5:51pm UTC](https://forums.kodeco.com/t/chapter-9-final-project-crash/90610/1 "2019-12-06T17:51:00Z")

</div>

After clicking save button, the program will crash and stop at

public func createQuestionGroupViewController(  
viewController: CreateQuestionGroupViewController,  
created questionGroup: QuestionGroup) {

questionGroupCaretaker.questionGroups.append(questionGroup)  
try? questionGroupCaretaker.save()

dismiss(animated: true , completion: nil)  
tableView.reloadData() ← Program stops here when crash  
}

The final project in the version 2.0 won’t crash.

I guess maybe it’s because the observer pattern’s problem? That is the only difference in SelectQuestionGroupViewController.

Can anybody help me to find out why it crashes?

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [January 1, 2020, 6:03am UTC](https://forums.kodeco.com/t/chapter-9-final-project-crash/90610/2 "2020-01-01T06:03:28Z")

</div>

@lmw41 Thanks very much for your question.

Have you put break points in this function? If so, at what line does it crash? What is the error message displayed in the console?

---

<div class="post-metadata">

**Author:** ![ip\_ace](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ip_ace/32/111900_2.png) [@ip\_ace](https://forums.kodeco.com/u/ip_ace)\
**Post date:** [October 25, 2026, 5:39am UTC](https://forums.kodeco.com/t/chapter-9-final-project-crash/90610/3 "2026-10-25T05:39:03Z")

</div>

SelectQuestionGroupViewController

@IBOutlet **internal**  **var** tableView: UITableView!  
is not connected to the Storyboard.
