NPE in attribute managemen