TreeContentProvider just getting every Directory of my path. (File Filter)

im trying to get every folder of my path. Now Im getting just folders but as soon as some other file comes up it gives me a JavaNullPointerException. I know its beacuse of listFiles() but I dont know …