I've been getting this error...
[2017-02-27 15:11:23] NONE us us_crdrscrdrsge NONE
[2017-02-27 15:11:23] brea crdrs crdrs_ar united states
[2017-02-27 15:11:23] brea crdrs crdrs_daz1 united states
[2017-02-27 15:11:23] brea crdrs crdrs_dev united states
[2017-02-27 15:11:23] brea crdrs crdrs_devgen united states
[2017-02-27 15:11:24] NONE us us_ctabscaninv NONE
[2017-02-27 15:11:24] NONE us us_ctabscanstmt NONE
fatal error: unexpectedly found nil while unwrapping an Optional value
2017-02-27 15:11:24.111276 Mobile[647:47234] fatal error:
unexpectedly found nil while unwrapping an Optional value
How can I protect against nil values in this for loop:
```
let apResults = realm.objects(DestinationNoEnum.self).
filter("destinationRegionCode = 'ap'")
for aps in apResults {
autoreleasepool {
print("\(aps.destinationCity) \(aps.destinationCode)
\(aps.destinationName) \(aps.destinationCountry)")
}}
the apResults array is created via a realm query. There's like 1000 entries in the db.