Uploaded image for project: 'Contrib: Textbook'
  1. Contrib: Textbook
  2. TXB-220

Textbook throws NPE for older term

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: OPEN
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.2
    • Fix Version/s: None
    • Component/s: Textbook
    • Labels:
      None
    • Previous Issue Keys:
      UMICH-439

      Description

      This bug was discovered during PRT testing:

      1) Become user "rmbarks"
      2) Select Textbook & select "Fall 2010" term
      3) The "Fall 2010" term is not retained in the UI, and the following crash is logged:

      2011-08-06 05:27:18,032 [TP-Processor26] WARN org.sakaiproject.tbook.model.Book - Exception copying book 9780823214730
      java.lang.NullPointerException
      at org.sakaiproject.tbook.model.Book.areEqual(Book.java:626)
      at org.sakaiproject.tbook.model.Book.copyFormsIfNeeded(Book.java:606)
      at org.sakaiproject.tbook.model.Book.copy(Book.java:500)
      at org.sakaiproject.tbook.logic.impl.TextbookLogicImpl.replaceBook(TextbookLogicImpl.java:513)
      at org.sakaiproject.tbook.logic.impl.TextbookLogicImpl.getBooks(TextbookLogicImpl.java:461)
      at org.sakaiproject.tbook.provider.impl.UnivOfMichTextbookProvider.getCourseFromJsonObject(UnivOfMichTextbookProvider.java:392)
      at org.sakaiproject.tbook.provider.impl.UnivOfMichTextbookProvider.getCourses(UnivOfMichTextbookProvider.java:133)
      at org.sakaiproject.tbook.logic.impl.TextbookLogicImpl.getCoursesForUser(TextbookLogicImpl.java:1224)
      at org.sakaiproject.tbook.tool.producers.UserCourseBookProducer.fillComponents(UserCourseBookProducer.java:150)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                bkirschn Beth Kirschner
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated: