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

Fix some NPE conditions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.7, 11.0
    • Fix Version/s: 11.2, 12.0
    • Component/s: Profile
    • Labels:
    • 11 status:
      Resolved

      Description

      Under certain conditions, Profile2 can experience some NPEs.

      eg

      Caused by: java.lang.NullPointerException
      	at org.sakaiproject.profile2.logic.ProfileConnectionsLogicImpl.isUserXFriendOfUserY(ProfileConnectionsLogicImpl.java:109)
      	at org.sakaiproject.profile2.logic.ProfilePrivacyLogicImpl.isActionAllowed(ProfilePrivacyLogicImpl.java:141)
      	at org.sakaiproject.profile2.logic.ProfileImageLogicImpl.getProfileImage(ProfileImageLogicImpl.java:181)
      	at org.sakaiproject.profile2.tool.entityprovider.ProfileEntityProvider.getProfileImage(ProfileEntityProvider.java:158)
      

      and

      java.lang.NullPointerException
          at org.sakaiproject.profile2.logic.ProfileConnectionsLogicImpl.getOnlineStatus(ProfileConnectionsLogicImpl.java:460)
          at org.sakaiproject.profile2.logic.ProfileConnectionsLogicImpl.getBasicConnections(ProfileConnectionsLogicImpl.java:395)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                steve.swinsburg Steve Swinsburg
                Reporter:
                steve.swinsburg Steve Swinsburg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code