3

On my crash report I get the following output at the top.

0x00000001001a6c80 function signature specialization <Arg[0] = Owned To Guaranteed> of 
Test.MMCheckUserDetailsController.submitOrderButtonTapped 
(Test.MMCheckUserDetailsController)() -> () (MMCheckUserDetailsController.swift:167)

Here is the code for this output:

  func submitOrderButtonTapped() {

  (L167) let roomNumberText = count(roomNumberTextField.text) > 0 ? roomNumberTextField.text : "0"
  (L168) var myRoomNumber: Int32 = Int32(roomNumberText.toInt()!)

    ...
  }

I do not see how this line can crash my app.

What does this error actually means?

Michael
  • 32,527
  • 49
  • 210
  • 370

1 Answers1

3

You are use coalescing operator at Line Number 167 as below. and Try now.

let roomNumberText = roomNumberTextField.text ?? "0"
Kirit Modi
  • 23,155
  • 15
  • 89
  • 112