Prevented NullPointerException in AssignmentFragment