<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>426815</bug_id>
          
          <creation_ts>2020-09-21 14:23:21 +0000</creation_ts>
          <short_desc>Crash when check-in last loaned item</short_desc>
          <delta_ts>2020-09-23 01:09:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>HEAD</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simon Fernandez">simon</reporter>
          <assigned_to name="Robby Stephenson">robby</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/tellico/commit/4e120e629bbe62c7c1cd382e9e5b7a4e52d304df</cf_commitlink>
          <cf_versionfixedin>3.3.4</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1959136</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fernandez">simon</who>
    <bug_when>2020-09-21 14:23:21 +0000</bug_when>
    <thetext>SUMMARY
When an item is loaned, we can check it back in from the left group panel. When checking-in the last item of a given user, tellico crashes. It only crashes when the borrower has no more items checked-out

STEPS TO REPRODUCE
1. Check-out an item to someone
2. Check-in the item 
3. Crash

OBSERVED RESULT
Crash with error log :

ASSERT failure in QList&lt;T&gt;::at: &quot;index out of range&quot;, file /usr/include/qt/QtCore/qlist.h, line 571


EXPECTED RESULT
Not crashing

SOFTWARE/OS VERSIONS
Archlinux with kernel 5.8.8 &amp; Ubuntu 20.04


ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959578</commentid>
    <comment_count>1</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2020-09-23 01:05:07 +0000</bug_when>
    <thetext>Git commit 3c63654c19d6a9b8947ffc306643725766dc4a1f by Robby Stephenson.
Committed on 23/09/2020 at 01:04.
Pushed by rstephenson into branch &apos;3.3&apos;.

Fix crashing bug when checking in a loan
FIXED-IN: 3.3.4

M  +4    -0    ChangeLog
M  +2    -1    src/models/borrowermodel.cpp

https://invent.kde.org/office/tellico/commit/3c63654c19d6a9b8947ffc306643725766dc4a1f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959579</commentid>
    <comment_count>2</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2020-09-23 01:09:40 +0000</bug_when>
    <thetext>Git commit 4e120e629bbe62c7c1cd382e9e5b7a4e52d304df by Robby Stephenson.
Committed on 23/09/2020 at 01:02.
Pushed by rstephenson into branch &apos;master&apos;.

Fix crashing bug when checking in a loan
FIXED-IN: 3.3.4

M  +4    -0    ChangeLog
M  +2    -1    src/models/borrowermodel.cpp

https://invent.kde.org/office/tellico/commit/4e120e629bbe62c7c1cd382e9e5b7a4e52d304df</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>