kandera/TrinityCore — comment on commit c31891bde36be7622921dffee248efc37b34ca8b
File: src/server/game/Spells/Auras/SpellAuraEffects.cpp line 4964
By kandera:

in this case target is the person who has the buff. look at the lines above it. that doesnt do any checking for target = null either.