Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1750

PageImpl.toString generates NPE when the first element in the content is null

    XMLWordPrintable

    Details

      Description

      currently the line 120 in PageImpl

      contentType = content.get(0).getClass().getName(); 

       

      causes NPE to be generates since the check before that only checks if the content.get(0) exists but it does not check if it is null so getClass() after that fails with NPE

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            kchobantonov kchobantonov
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: