iOS Question Exception: Target is null. Method called: Contains:

schimanski

Well-Known Member
Licensed User
Not always, but sometimes I get an errormessage for this line:

B4X:
If Nachricht.Contains("[@TIP@]§AUTHENxxxx") Then

Does somebody knows something about it? Thanks for help.
B4X:
Error occurred on line: 213 (server)
Target is null. Method called: Contains:
Stack Trace: (
  CoreFoundation       <redacted> + 150
  libobjc.A.dylib      objc_exception_throw + 38
  CoreFoundation       <redacted> + 0
  Foxfinder            +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 196
  Foxfinder            -[B4IShell runMethod:] + 496
  Foxfinder            -[B4IShell raiseEventImpl:method:args::] + 1846
  Foxfinder            -[B4IShellBI raiseEvent:event:params:] + 1280
  Foxfinder            __50-[B4I raiseEventFromDifferentThread:event:params:]_block_invoke + 74
  libdispatch.dylib    <redacted> + 10
  libdispatch.dylib    <redacted> + 22
libdispatch.dylib    _dispatch_main_queue_callback_4CF + 718
CoreFoundation       <redacted> + 8
CoreFoundation       <redacted> + 1512
CoreFoundation       CFRunLoopRunSpecific + 476
CoreFoundation       CFRunLoopRunInMode + 106
GraphicsServices     GSEventRunModal + 136
UIKit                UIApplicationMain + 1440
Foxfinder            main + 116
libdyld.dylib        <redacted> + 2
)
Log:  Target is null. Method called: Contains:
Log:  Target is null. Method called: Contains:
 

schimanski

Well-Known Member
Licensed User
Sorry, to little info: Nachricht is a string in that case and 'contains' the string-function, not a map....
 
Upvote 0

schimanski

Well-Known Member
Licensed User
I get the data from a serverstream...
B4X:
 filestream_NewData (Buffer() As Byte)
    Try
      
       
        Dim Nachricht As String
        Nachricht = BytesToString(Buffer, 0, Buffer.Length, "windows-1252")
 
Upvote 0
Top