Uploaded image for project: 'appNG'
  1. appNG
  2. APPNG-2153

Option(s) getInteger throws NPE for non existent attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.17.1
    • Component/s: appng-api
    • Labels:
      None

      Description

      <option id="test" />
      

      Both of these lines throw a NPE.

      options.getInteger("test","doesNotExists");
      options.getOption("test").getInteger("doesNotExists");
      

      Instead null must be returned as said by JavaDoc.

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: