Working on creating custom field - getting null pointer exception.