Exception: TypeError
Code: 0 Message: trim(): Argument #1 ($string) must be of type string, null given
Line: 1140 in file: /var/www/miniweb3/src/Lib/MetaSource/TCustomMetaSource.php

Trace: 
#0 /var/www/miniweb3/src/Lib/MetaSource/TCustomMetaSource.php(1140): trim()
#1 /var/www/miniweb3/src/Lib/MetaSource/TMetaSource.php(943): MiniWeb\Lib\MetaSource\TCustomMetaSource->buildRelations()
#2 /var/www/vniik/src/Lib/Database/DocsRepository.php(250): MiniWeb\Lib\MetaSource\TMetaSource->prepare()
#3 /var/www/vniik/src/Controllers/ServicesController.php(47): VNIIK\Lib\Database\DocsRepository->getGalleryByMnemonic()
#4 [internal function]: VNIIK\Controllers\ServicesController->index()
#5 /var/www/miniweb3/src/Lib/Container/CallableResolver.php(71): ReflectionMethod->invokeArgs()
#6 /var/www/miniweb3/src/Lib/Http/Middleware/ControllerActionHandler.php(172): MiniWeb\Lib\Container\CallableResolver->call()
#7 /var/www/miniweb3/src/Lib/Http/Middleware/RequestHandlerMiddleware.php(71): MiniWeb\Lib\Http\Middleware\ControllerActionHandler->handle()
#8 /var/www/miniweb3/src/Lib/Http/Middleware/DispatchMiddleware.php(57): MiniWeb\Lib\Http\Middleware\RequestHandlerMiddleware->process()
#9 /var/www/miniweb3/src/Lib/Http/Middleware/Next.php(61): MiniWeb\Lib\Http\Middleware\DispatchMiddleware->process()
#10 /var/www/miniweb3/src/Service/Middlewares/ErrorHandler.php(269): MiniWeb\Lib\Http\Middleware\Next->handle()
#11 /var/www/miniweb3/src/Lib/Http/Middleware/Next.php(61): MiniWeb\Service\Middlewares\ErrorHandler->process()
#12 /var/www/miniweb3/src/Lib/Http/Middleware/SessionStartMiddleware.php(41): MiniWeb\Lib\Http\Middleware\Next->handle()
#13 /var/www/miniweb3/src/Lib/Http/Middleware/Next.php(61): MiniWeb\Lib\Http\Middleware\SessionStartMiddleware->process()
#14 /var/www/miniweb3/src/Lib/Http/Middleware/RouteMiddleware.php(71): MiniWeb\Lib\Http\Middleware\Next->handle()
#15 /var/www/miniweb3/src/Lib/Http/Middleware/Next.php(61): MiniWeb\Lib\Http\Middleware\RouteMiddleware->process()
#16 /var/www/miniweb3/src/Lib/Http/Middleware/MiddlewarePipe.php(90): MiniWeb\Lib\Http\Middleware\Next->handle()
#17 /var/www/miniweb3/src/Lib/TApplication.php(216): MiniWeb\Lib\Http\Middleware\MiddlewarePipe->process()
#18 /var/www/miniweb3/src/Lib/TApplication.php(174): MiniWeb\Lib\TApplication->handle()
#19 /var/www/vniik/src/WebApp.php(2479): MiniWeb\Lib\TApplication->run()
#20 /var/www/vniik/public/index.php(9): VNIIK\WebApp->run()
#21 {main}