Affection and Happiness are two different things, Type: Null requires max happiness to evolve, not affection.
There are many things you can do to raise happiness, such as walking with the Pokémon in your party, giving it a massage, or feeding it certain berries or vitamins.
More information here.