Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1518

NPE thrown when calculating running totals with calls to /tally/products

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2023-07-24 - API
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Calls to

       

      api/rhsm-subscriptions/v1/tally/products/rosa/Cores?endi[…]&use_running_totals_format=true&billing_category=prepaid

      and similar are throwing NullPointerExceptions because the value of "previous" parameter used in the org.candlepin.subscriptions.tally.filler.TallyReportDataPointAdapter#createDefaultItem method are null.  We had a check for this but the check was actually testing that the "previous.getValue()" call wasn't null instead of checking that "previous" itself wasn't null.

       

              awood1@redhat.com Alex Wood
              awood1@redhat.com Alex Wood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: