Why does this get a null pointer?  If the attribute doesn't exist, the a warning should be logged or something.