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

My Profile link page throw NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.1, 2.6.2
    • Component/s: Profile
    • Labels:
      None
    • Previous Issue Keys:
      PRFL-97

      Description

      In our existing data, we have null value in BLOCKED field in SAKAI_PERSON_T table.

      If column BLOCKED in SAKAI_PERSON_T is null, it will throw NullPointerException, and that was why we see "Internal Error ---- Runtime exception..." on the My Profile link page. In profile2 1.2 release, UserProfile object added one more attribute blocked attribute; it needs null handler in MyProfile.java to initialized UserProfile object successfully.

      I fixed this problem and it seems working fine now. I attached our patch here. Hope it can be helpful.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                steve.swinsburg Steve Swinsburg
                Reporter:
                yq12 Yuanhua Qu
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration