Check classes for null.