Error when compiling a class with a nested class defined. The collection would be null.