•  bertb
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
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:


Never say "OOPS!" always say "Ah, Interesting!"
  •  Mek
  • 100% (Exalted)
  • YAF Developer
Thanks FP:Mek


"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