Fatal error: Call to a member function access() on null in

Hi.
I have an issue with the anonymous user could not browse the node which created H5P contents.
I check online but couldn't find any solutions.
Does anybody know how to fix this?
Drupal 8.4.4, PHP 5.6.30 H5P latest, 


>These are Error and the php line 1232
Fatal error: Call to a member function access() on null in 
/home/oceasiac/public_html/xxxxxx/modules/h5p/src/H5PDrupal/H5PDrupal.php on line 1232

  private static function mayCurrentUserUpdateNode($nid) {

    return \Drupal\node\Entity\Node::load($nid)->access('update');

}

I uninstalled Drupal itself and install both of them, no more error. 

BV52's picture

Hi Lyuji,

I'm glad it's working for you now.

-BV52