PKX/TrinityCore — comment on commit 64e21f76bb2fd210783d4696e3d2414106f82503
File: src/server/scripts/Spells/spell_generic.cpp line 1402
By Lopin:

Nope, it's not as I use SpellScript qute often ;)

as you can see there, GetHitCreature() is checked, but GetCaster() don't ( https://github.com/TrinityCore/TrinityCore/blob/master/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp#L3060 )

also this is what QAston, creator of SpellScript/AuraScript classes told me :) It could have changed, but never crashed for me on not-checked NULL pointer of GetCaster(), but it crashed in half cases on NULL pointer of GetTarget() ;)