posted 18 years ago
The above code produces output such as
What could cause a NullPointerException? allowedFile is a File object, and as you can see it is NOT null. Besides, if it was, the AllowedProperty constructor throws a NullPointerException with a custom message:
Any ideas why I get a NPE?