Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-18740

bug in site-participanthelper

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.1, 2.8.0
    • Component/s: Site Info
    • Labels:
      None

      Description

      I have no idea how to trigger this, but I'm pretty sure there's bad code. In our copy of 2.7 I got a null pointer from the line

      participant.credits = participant.credits.concat(", <br />" + e.getCredits());

      This is fixed in the current code by

      if (e.getCredits() != null && e.getCredits().length() >0)

      { participant.credits = participant.credits.concat(", <br />" + e.getCredits()); }

      however you probably need to add

      else
      participant.credits = e.getCredits();

      otherwise you could end up lose an entry for credits if the first entry is null.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  zqian Zhen Qian
                  Reporter:
                  hedrick Charles Hedrick
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration