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?

confile
  • 30,949
  • 47
  • 199
  • 357

1 Answers1

3

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

let roomNumberText = roomNumberTextField.text ?? "0"
Kirit Modi
  • 22,359
  • 14
  • 86
  • 110