Fatal Error in PHP.ErrorHandler();

Trying to get property of non-object

The error occurred on or near: /home/0-web/0a/26/australian-shares.com/public/www/forums/applications/vanilla/controllers/discussion.php

141:    // Used for pointing directly to a comment in a discussion (ie. start the discussion page with that comment)
142:    public function Comment($CommentID) {
143:       // Get the discussionID
144:       $Comment = $this->CommentModel->GetID($CommentID);
145:       $DiscussionID = $Comment->DiscussionID;
146:       
147:       // Figure out how many comments are before this one
148:       $Offset = $this->CommentModel->GetOffset($CommentID);
149:       $Limit = Gdn::Config('Vanilla.Comments.PerPage', 50);

Backtrace:

[/home/0-web/0a/26/australian-shares.com/public/www/forums/library/core/functions.error.php:124] PHP::include();
[/home/0-web/0a/26/australian-shares.com/public/www/forums/applications/vanilla/controllers/discussion.php:145] PHP::ErrorHandler();
[/home/0-web/0a/26/australian-shares.com/public/www/forums/library/core/class.dispatcher.php:230] DiscussionController->Comment();
[/home/0-web/0a/26/australian-shares.com/public/www/forums/index.php:41] Gdn_Dispatcher->Dispatch();

Variables in local scope:

[CommentID] '6618'
[Comment] false

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.

Additional information for support personnel: