geotools/geotools — pull request #647 by tbarsballe (2014-12-17 00:26:32+00:00)
Title: Fixed nullPointerException thrown when AttributeDescriptor is null

Ran into this while testing an unrelated project (gt-property-ng), clearly a bug since the check `ad == null` can never return true because of the `ad.getType()` call on the previous line.