Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1101

Invalid assert and comment in CoreRenderingContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.8-core, 1.2.8-core
    • 1.0.9-core, 1.2.9-core
    • None
    • None

    Description

      The CoreRenderingContext.getFormData() contains an invalid assert that often triggers when asserts are turned on. The invalid assert checks to see if formData is null. I did a check for all code referencing getFormData and they all seem to handle a null value being returned, therefore, this assert is invalid because a null formData seems to be part of the normal execution of this method. Furthermore, the comment on CoreRenderingContext.getFormData() says that the method will create a new formData if one is not present. This does not agree with either the usage OR the assert.

      Therefore we need to switch this method so that it works with the current usage of the class.

      Attachments

        1. TRINIDAD-1101.patch
          0.7 kB
          Scott O'Bryan

        Activity

          People

            darkarena Scott O'Bryan
            darkarena Scott O'Bryan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: