YAFLogo

delavega
  • delavega
  • 60.8% (Friendly)
  • YAF Forumling Topic Starter
15 years ago
I'm running the last version of Yaf and integrate it correctly with Asp.net Membership.

It all works fine, except when I try to logout when I'm viewing a user profile. In other pages, for example viewing posts, the logout works ok.

The error is:

Object reference not set to an instance of an object.

Line 149: if ( ShowSignature && PageContext.BoardSettings.AllowSignatures && DataRow ["Signature"] != DBNull.Value && DataRow ["Signature"].ToString().ToLower() != "

 

" && DataRow ["Signature"].ToString().Trim().Length > 0 )Line 150: {

Line 151: return DataRow["Signature"].ToString();

These lines belong to c:\yaf\YAF.Controls\MessagePostData.cs

I'm not sure about these lines, it seems to be about the user signature.

I tried removing everything and just leave a "return null" in the method and it seems to work. But I'd like to know if I'm not breaking anything else with this.

Thanks a lot for the help.

Sponsor