Description
you will get a null pointer exception if file.listFiles() returns null. We therefore need to check for null before looping
you will get a null pointer exception if file.listFiles() returns null. We therefore need to check for null before looping