Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-403

Never propagate a "NullPointerException" resulting from bad usage of the API

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      Package "exception" contains a class named "NullArgumentException" meant to signal that an argument was "null" where it shouldn't have been.
      For consistency, every method of the API should be checked for "null" arguments and throw "NullArgumentException" appropriately.

      This means hunting down all unchecked uses of references. Is there a tool that will report those?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erans Gilles
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: