locked
System.NullReferenceException was unhandled RRS feed

  • Question

  • Hi,
    When I compiled my project the following error occured hope some one can help me.

    System.NullReferenceException was unhandled
      Message="Object reference not set to an instance of an object."
      Source="IMS.OMAPresence"
      StackTrace:
           at IMS.OMAPresence.BuddyListCollection..ctor(IListElement baseList, Presence owner)
           at IMS.OMAPresence.Presence.BuildBuddyLists()
           at IMS.OMAPresence.Presence.xdmcProvider_ProviderStatusChanged(Object sender, Boolean providerReady)
           at XDMCUtility.XDMCProvider.SetProviderReady(Boolean value)
           at XDMCUtility.XDMCProvider.set_ProviderIsReady(Boolean value)
           at XDMCUtility.XDMCProvider.InitiateThreadProcedure()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()

    Wednesday, August 29, 2007 6:19 AM

Answers

  • maybe u didnt instanciate correctly your object constructor...

    like... MyObjectType toto =  new MyObjectType();
    that's why u got null referenceException
    Wednesday, August 29, 2007 8:38 AM
  • Hi Hussian,

     

    As I understand from the exception saying "System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object.", maybe there is an object instance being null, but you use its properties or methods in your application. My suggestion is to try to debug it step by step and check if there is any null object instance in your application.  


    Hope this helps,

     

    Citizens on the earth

    Friday, August 31, 2007 2:57 AM

All replies

  • maybe u didnt instanciate correctly your object constructor...

    like... MyObjectType toto =  new MyObjectType();
    that's why u got null referenceException
    Wednesday, August 29, 2007 8:38 AM
  • Hi Hussian,

     

    As I understand from the exception saying "System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object.", maybe there is an object instance being null, but you use its properties or methods in your application. My suggestion is to try to debug it step by step and check if there is any null object instance in your application.  


    Hope this helps,

     

    Citizens on the earth

    Friday, August 31, 2007 2:57 AM