SelectFile library generates a “FATAL EXCEPTION: main” error

Again sorry for a late answer, this is probably due to the fact that I am getting more and more frustrated with this problem which by the way I posted already 7 years ago on the predecessor of this forum. Any way, thank you for your help.
The code you provided is the code that can be found on the Ostap Andrusiv page where you were so kind to comment on the importance of a proper handling of the permission requests. It is this code that I have tried several times (sorry the code at the top of my post is incomplete in that respect). Building the sketch works and a message appears on the phone asking to confirm the permissions set. Once accepted, the sketch will crash and the errors as mentioned above will appear.
Have you successfully tried this code?
regards
marc