ErrorException [ Warning ]: Trying to access array offset on value of type null

APPPATH/classes/Controller/Download.php [ 223 ]

218 			//$itemsperpage = 10;
219 		
220 		
221 		$downloadsAutorizados = ORM::factory('Cm_DownloadAuthorization')
222 									->where('store_id','=',$this->store->id)
223 									->where('user_id','=',$user['user_id'])
224 									->find_all();
225 									
226 		if($downloadsAutorizados->count()){
227 			
228 			
  1. APPPATH/classes/Controller/Download.php [ 223 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Download->action_list()

  3. {PHP internal call} » Kohana_Controller->execute()

  4. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)

  5. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  6. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)

  7. DOCROOT/public/index.php [ 118 ] » Kohana_Request->execute()

Environment