Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:49:20+00:00 2026-06-16T01:49:20+00:00

Hope someone can assist with this, it’s driving me crazy. I have a class

  • 0

Hope someone can assist with this, it’s driving me crazy.

I have a class that inherits from a parent object and which overrides some of the methods of that object. The relevant code in one of the overrides looks like this (I’ve stripped out code that functions correctly):

    public override void Initialise()
    {
        if (Url != null)
        {
            _logger.LogInfo("Initialising for file " + Url);

            // call the base Initialise method
            try
            {
                base.Initialise();
            }
            catch (Exception ex)
            {
                _logger.LogError("Error on initialise : ", ex);
            }
      }
 }

The logger object writes to our application log database.

When it reaches this point in the code for the first time, it logs error on initalise, and gives me an object reference not set to instance of object error. But there’s no further information, no inner exception, and no line number.

I’m left wondering if there’s any way that base could possibly be null? It seems bizarre and unlikely but I’m at a loss to explain why there’s no further information and why the code has resisted all my attempts to get any more information out of it.

It’s on a live server so I can’t step through it, and I can’t replicate the error on a test server. If anyone has any ideas as to how I can get more detail on where and how its going wrong, it’d be deeply appreciated.

Cheers,
Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:49:22+00:00Added an answer on June 16, 2026 at 1:49 am

    Answer to your question is no. Base cannot be null, because it is instantiated before child class (if you don’t call specific base type constructor, then default one is called just before child class constructor executed). Your error comes from base.Initialize() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hope someone can help with this problem that's been driving me insane for ages.
I hope someone can help me. This has been driving me crazy for days.
Hope someone can help me with this.. I have a magento store up&running, via
I hope someone can assist me with the problem I'm currently experiencing. We have
Hope someone can help. I have a simple scenario where clicking checkboxes is driving
I hope someone can help... This issue has been discussed here and I have
I hope someone can assist please. I have a Fragment hosting multiple list fragments
I hope someone can offer any help!! I have web page that initiates a
I hope someone can give me a hand figuring this out. I have been
I hope someone can help with this issue. I have a popup iframe using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.