Closed
Description
- AbstractMongoQuery.execute() calls ReturnedInterface.getTypeToRead()
- ReturnedInterface.getTypeToRead() returns null when the query's result is a closed projection
- AbstractMongoQuery.execute() calls StringBasedAggregation.execute()
- StringBasedAggregation.execute() calls StringBasedAggregation.isSimpleReturnType() and passes null as the targetType
- StringBasedAggregation.isSimpleReturnType() calls MongoSimpleTypes.HOLDER.isSimpleType()
- MongoSimpleTypes.HOLDER.isSimpleType() raises a NullPointerException by attempting to invoke type.isEnum() when type is null
This does not happen when projecting to a class.