Exception: Call to a member function getLocalFile() on null at lib/private/AppFramework/Http/Dispatcher.php line 159
0. lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Printer\Controller\PrinterController {}, "printfile")
1. lib/private/Route/Router.php line 302
OC\AppFramework\App::main("OCA\\Printer\\Controller\\PrinterController", "printfile", OC\AppFramework\DependencyInjection\DIContainer {}, {_route:"printer.printer.printfile"})
2. lib/base.php line 993
OC\Route\Router->match("\/apps\/printer\/printfile")
3. index.php line 37
OC::handleRequest()
Caused by Error: Call to a member function getLocalFile() on null at lib/private/Files/Filesystem.php line 557
0. custom_apps/printer/lib/Controller/PrinterController.php line 31
OC\Files\Filesystem::getLocalFile("REDACTED_FILENAME")
1. lib/private/AppFramework/Http/Dispatcher.php line 218
OCA\Printer\Controller\PrinterController->printfile("REDACTED_FILENAME", "landscape")
2. lib/private/AppFramework/Http/Dispatcher.php line 127
OC\AppFramework\Http\Dispatcher->executeController(OCA\Printer\Controller\PrinterController {}, "printfile")
3. lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Printer\Controller\PrinterController {}, "printfile")
4. lib/private/Route/Router.php line 302
OC\AppFramework\App::main("OCA\\Printer\\Controller\\PrinterController", "printfile", OC\AppFramework\DependencyInjection\DIContainer {}, {_route:"printer.printer.printfile"})
5. lib/base.php line 993
OC\Route\Router->match("\/apps\/printer\/printfile")
6. index.php line 37
OC::handleRequest()
When printing, I get the following error in the logs:
And it just keeps spinning