Should be else if (data != null && additionalEventData != null)
You forgot one more situation when (data == null && additionalEventData != null).