About 16,300 results
Open links in new tab
  1. Determining the object that caused a null reference exception?

    Sep 1, 2021 · Frequently in applications we encounter situations that could throw a NullReferenceException; for example, assuming the following method's argument is a user defined …

  2. .net - Why doesn't "object reference not set to an instance of an ...

    Oct 26, 2012 · We're launching a system, and we sometimes get the famous exception NullReferenceException with the message Object reference not set to an instance of an object.

  3. c# - Is it unreasonable to expect Any () *not* to throw a null ...

    Sep 18, 2018 · When you create an extension method you can, of course, call it on null.But, unlike an instance method call, calling it on null doesn't have to throw a NullReferenceException -> you have …

  4. How does throwing an ArgumentNullException help?

    A NullReferenceException is not particularly meaningful, because it could mean about everything. Without looking at where the exception was thrown (and the code might not be available to me) I …

  5. c# - Why assert for null on a object before asserting on some of its ...

    Feb 23, 2023 · You'd get your test framework specific exception that's thrown by the 'NotBeBull' assertion instead of the generic 'nullReferenceException'. I don't feel this is useful as you are getting …

  6. Continued code execution after (throwing) an Exception

    Dec 21, 2017 · Discover a method to toggle exception handling between throwing or custom code while conserving stack trace integrity in this insightful article.

  7. The meaning of 'null' - CodeProject

    May 15, 2017 · Discover the meaning of null in programming, its implications, and how to effectively handle it in your code.

  8. Are null references really a bad thing? - Software Engineering Stack ...

    I suppose that a CustomerNotFoundException is a bit easier to debug than a NullReferenceException by virtue of being more descriptive. Is that all there is to it?

  9. If null is a billion dollar mistake, what is the solution to represent ...

    Jul 27, 2020 · I think if null is a built-in concept of your language you cannot get rid of it and have to deal with it. Your language might not offer something like Optionals. But you can aim for making sure that …

  10. MoonPdfPanel - A WPF-based PDF Viewer Control - CodeProject

    Apr 18, 2013 · System.NullReferenceException: Object reference not set to an instance of an object. at MoonPdfLib.ContinuousMoonPdfPanel.Load(IPdfSource source, String password)