bertb
  •  bertb
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
2009-05-13T23:23:15Z
I just came across a small bug when suspending or removing the suspension of a user.

When the 'Suspend User' or 'Remove suspension' buttons are clicked a NullReferenceException is thrown.

The error occurs in the 'Last10Posts'-repeater of the Profile Page, because the UserData(Signature) is not bound to the repeater after clicking the buttons.

I made a quickfix by adding the following snippet at the end of Page_Load of pages/profile.ascx.cs (after line 73), but I'm not sure if this is the nicest way to solve this, but a needed a quick fix, it will do for now :wink:

else
{
    DataBind();
}

Never say "OOPS!" always say "Ah, Interesting!"
Sponsor
Mek
  •  Mek
  • 100% (Exalted)
  • YAF Developer
2009-05-14T01:11:57Z
Thanks FP:Mek

UserPostedImage 

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved