Possible Duplicates: What is a NullReferenceException in .NET? System.NullReferenceException: Object reference not set to an instance of an object
I am using the following code.
public partial class SectionControls_SingleBanners : SectionControlBaseClass
{
private SingleBanners _section;
protected void Page_PreRender(object sender, EventArgs e) {
updateViews();
if (RssCapable(this._section.GetType()) && _section.BannersEntries.Rows.Count > 0) {
So here on this code I am getting the error
this._section.GetType();
How can this problem be fixed?