If using the Mail SocialNetwork on route with no entity, we get a fatal error

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\social_simple\SocialNetwork\Mail::checkForwardIntegration() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in modules/contrib/social_simple/src/SocialNetwork/Mail.php on line 67 in Drupal\social_simple\SocialNetwork\Mail->checkForwardIntegration() (line 103 of modules/contrib/social_simple/src/SocialNetwork/Mail.php).

Let's fix that and check if entity is not null

CommentFileSizeAuthor
#2 3036488-2.patch502 bytesflocondetoile

Comments

flocondetoile created an issue. See original summary.

flocondetoile’s picture

Status: Active » Needs review
StatusFileSize
new502 bytes

  • flocondetoile committed 21005e4 on 8.x-1.x
    Issue #3036488 by flocondetoile: Fatal error with Mail SocialNetwork on...
flocondetoile’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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