Call to a member function getGenericDisplayType() on null

Permalink
Hi concrete5 peolple,
clicking on files i run into this sql errror exception:

[code[
/var/www/frozenstar/concrete/src/File/Search/ColumnSet/FolderSet.php

{
switch ($node->getTreeNodeTypeHandle()) {
case 'file_folder':
return t('Folder');
case 'search_preset':
return t('Saved Search');
case 'file':
$file = $node->getTreeNodeFileObject();
if (is_object($file)) {
return $file->getTypeObject()->getGenericDisplayType();
}
break;
}
}

public static function getDateModified($node)
{
$app = Application::getFacadeApplication();

return $app->make('date')->formatDateTime($node->getDateLastModified());
[/code]
It looks to me a sql error where concrete5 is not involved.
What do you think ?
Regards