Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2057

null check doesn't safeguard against non-existing values in the BOM config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1.0
    • 1.1.0
    • build
    • None

    Description

      BIGTOP-2051 has switched the build to use configuration properties instead of java properties. One of the unfortunate side effects of such dynamism is that null checks don't work as expected anymore, as empty elements of the config would be assigned with a ConfigObject instance even after simply null check. That leads to failures for component builds where some elements are omitted all-together, e.g bigtop-utils.

      Instead of null checks I propose to user .isEmpty()

      Attachments

        1. BIGTOP-2057.patch
          2 kB
          Konstantin I Boudnik
        2. BIGTOP-2057.patch
          2 kB
          Konstantin I Boudnik

        Issue Links

          Activity

            People

              cos Konstantin I Boudnik
              cos Konstantin I Boudnik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: