p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.Apple-tab-span {white-space:pre}
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -length cannot be sent to an abstract object of class NSString: Create a concrete instance!'
*** First throw call stack:
(
0 CoreFoundation 0x000000010bfc1b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010ba26141 objc_exception_throw + 48
2 CoreFoundation 0x000000010c02a625 +[NSException raise:format:] + 197
3 Foundation 0x000000010a8e85a3 -[NSString length] + 19
4 CoreFoundation 0x000000010bf4e288 CFStringReplaceAll + 264
5 Foundation 0x000000010a7f3c6a -[NSString lowercaseStringWithLocale:] + 47
6 SafariServices 0x000000010b4210e7 -[NSString(SafariServicesExtras) sf_isFeedScheme] + 27
7 Foundation 0x000000010a8797dd _NSGetBoolValueWithMethod + 77
8 Foundation 0x000000010a7ede1d -[NSObject(NSKeyValueCoding) valueForKey:] + 284
9 Foundation 0x000000010a871a25 -[NSObject(NSKeyValueCoding) dictionaryWithValuesForKeys:] + 168
10 plusco 0x0000000109dec9f0 -[AnonymousObject setFieldsDirect:cache:] + 71
11 plusco 0x0000000109dee039 -[AnonymousObject adapt:cache:] + 1290
12 plusco 0x0000000109ded11e -[AnonymousObject setFieldsDirect:cache:] + 1909
13 plusco 0x0000000109dee039 -[AnonymousObject adapt:cache:] + 1290
14 plusco 0x0000000109ddfcbe -[ArrayType defaultAdapt:] + 625
15 plusco 0x0000000109de00ab -[BodyHolderFactory createObject:] + 114
16 plusco 0x0000000109decf24 -[AnonymousObject setFieldsDirect:cache:] + 1403
17 plusco 0x0000000109dee039 -[AnonymousObject adapt:cache:] + 1290
18 plusco 0x0000000109dcfe17 -[HttpEngine processAsyncAMFResponse:] + 440
19 libdispatch.dylib 0x000000010f5f94a6 _dispatch_call_block_and_release + 12
20 libdispatch.dylib 0x000000010f62205c _dispatch_client_callout + 8
21 libdispatch.dylib 0x000000010f60340b _dispatch_main_queue_callback_4CF + 411
22 CoreFoundation 0x000000010bf86909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
23 CoreFoundation 0x000000010bf4cae4 __CFRunLoopRun + 2164
24 CoreFoundation 0x000000010bf4c016 CFRunLoopRunSpecific + 406
25 GraphicsServices 0x0000000113474a24 GSEventRunModal + 62
26 UIKit 0x000000010cace0d4 UIApplicationMain + 159
27 plusco 0x0000000109d91807 main + 55
28 libdyld.dylib 0x000000010f66e65d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Code which is executed, simple find, with SQLlike query
Its crashing inside backendless SDK lib
SVProgressHUD.show(withStatus: NSLocalizedString("Global_Loading", comment: "Loading..."))
let queryBuilder = DataQueryBuilder()
_ = queryBuilder?.setRelationsDepth(5)
let whereClause = "to.objectId = '\(self.senderId!)' OR to.objectId = '\(notificationHelper.connectTouserId!)' OR from.objectId = '\(self.senderId!)' OR from.objectId = '\(notificationHelper.connectTouserId!)'"
_ = queryBuilder?.setWhereClause(whereClause)
print(whereClause)
Backendless.sharedInstance().data.of(Messages.self).find(queryBuilder, response: { (res:Any?) in
SVProgressHUD.dismiss()
if let data:Array<Messages> = res as? Array<Messages>
{
self.data = data
self.finishReceivingMessage(animated: true)
}
}, error: { (err:Fault?) in
print("Server reported an error: \(err)")
SVProgressHUD.dismiss()
})