I don’t understand.
Which line gives that error? A stack trace would be helpful.
At first glance that code looks identical to your original code.
I don’t understand.
Which line gives that error? A stack trace would be helpful.
At first glance that code looks identical to your original code.