Running Task TestFileTask

GET /dev/tasks/TestFileTask

[Emergency] Uncaught Error: Call to a member function getExtension() on null

GET /dev/tasks/TestFileTask

Line 30 in /home/strule/public_html/app/src/Tasks/TestFileTask.php

Source

21 
22     public function run($request) {
23       
24       set_time_limit(0);
25       
26       $testFile = File::get()->byID(6560);
27       
28       
29       
30       echo($testFile->getExtension());
31       
32       
33     }
34 
35 
36 }

Trace