Bukkit/Bukkit — pull request #1086 by Morphan1 (2014-07-13 04:12:33+00:00)
Title: [B] Allow null modifier functions in EntityDamageEvent. Fixes Bukkit-5688

The Issue:

Currently, damaging a non-living entity (such as an item frame) throws an NPE and crashes the server.

Justification for this PR

This pull request fixes a huge internal server error caused by Bukkit.

PR Breakdown:

Checks for a null value of modifierFunctions in EntityDamageEvent, and refrains from accessing the variable to prevent an NPE.

JIRA Ticket:

BUKKIT-5688 - https://bukkit.atlassian.net/browse/BUKKIT-5688