Fatal error: Call to a member function getDocumentInfo() on a non-object in /home/www/work/zamb/application/modules/zamb/controllers/DocumentController.php on line 203

shutdownhandler (Error)(1): Call to a member function getDocumentInfo() on a non-object

in /home/www/work/zamb/application/modules/zamb/controllers/DocumentController.php at line 203
00198:              }
00199:  
00200:              $replycount $this->provideComments();
00201:  
00202:              if(! $this->document->getPageInfo($page) instanceof PageInfo){
00203:                  throw new Exception("Document #{$document->getDocumentInfo()->getId()} has no page #{$page}");
00204:              }
00205:  
00206:              $this->view->document $this->document;
00207:              $this->view->headMeta()->setName('description',$this->document->getPageInfo($page)->getMetaDescription());