0
I got the following error message:
Fatal error: unexpectedly found nil while unwrapping an Optional value
In the following code snippet:
    // Lê uma coluna do tipo String no (BANCO DE DADOS)
    func getString(stmt:COpaquePointer, index:CInt) -> String {
       let cString  = SQLiteObjc.getText(stmt, idx: index)
       let s = String(cString)
       return s
    }
Why does this happen?
The problem is identical to what occurred in your another question. Are you trying to start a
Stringpassing a null value, in case you need to check ifcStringhas some value.– Paulo Rodrigues
Thanks! I thought I could not do the same check, being that the value was null.
– Leonardo Rocha