I'm trying to show all available sizes for one product on list.phtml

I've set up a custom attribute "size_age" (id:142) but when I try use the code

    $attributeLabel = $customer->getResource() ->getAttribute('size_age') ->getFrontend() ->getAttribute() ->getFrontendLabel();

I get this error: Fatal error: Call to a member function getResource() on null