Uploaded image for project: 'Acumos'
  1. Acumos
  2. ACUMOS-2679

PortalUtil Null pointer exception in convertToMLSolution method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: cds-2.0.0
    • Fix Version/s: pm-2.2.10
    • Component/s: portal-marketplace
    • Labels:
      None

      Description

      Need to handle nullPointer Exception in PortalUtil.convertToMLSolution() for below fields as these fields might be null in database:

      mlSolution.setDownloadCount(mlpSolution.getDownloadCount().intValue()
      mlSolution.setRatingCount(mlpSolution.getRatingCount().intValue());
      mlSolution.setViewCount(mlpSolution.getViewCount().intValue());
      mlSolution.setSolutionRatingAvg(mlpSolution.getRatingAverageTenths() / 10);

      logs attached

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              tausifk Tausif Khanooni
              Reporter:
              tausifk Tausif Khanooni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: