Issue #3340154 by godotislate, smustgrave: Link-widget throws exception when...
Issue #3340154 by godotislate, smustgrave: Link-widget throws exception when rebuilding a form with an invalid uri
(cherry picked from commit 6b4fa61d)
// The current field value could have been entered by a different user.
// However, if it is inaccessible to the current user, do not display it
// to them.
'#default_value'=>(!$item->isEmpty()&&(\Drupal::currentUser()->hasPermission('link to any page')||$item->getUrl()->access()))?static::getUriAsDisplayableString($item->uri):NULL,