Problem

https://github.com/goalgorilla/open_social/blob/8.x-7.x/modules/custom/a...

This doesn't check if the comment still exists. This can cause getParentEntity to be called on NULL which causes a fatal error.

Solution

Mirror the code that's used in the next if statement and guard for a deleted comment.

Comments

Kingdutch created an issue. See original summary.

kingdutch’s picture

  • Kingdutch committed 9a43802 on 8.x-6.x
    Issue #3075758 by Kingdutch: Notification creation has fatal error if...
ronaldtebrake’s picture

Status: Needs review » Fixed

Will land in 6.2 :) Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.