[Bps-public-commit] r10210 - in RT-Client-Console: trunk/lib/RT/Client/Console/Session/Ticket

dams at bestpractical.com dams at bestpractical.com
Sun Dec 30 18:28:09 EST 2007


Author: dams
Date: Sun Dec 30 18:28:09 2007
New Revision: 10210

Modified:
   RT-Client-Console/   (props changed)
   RT-Client-Console/trunk/lib/RT/Client/Console/Session/Ticket/Transactions.pm

Log:
 r54 at pundit:  dams | 2007-12-30 23:28:02 +0000
 fix a potential crash when fast switching tickets while browsing a transaction and loading another ticket (yes)


Modified: RT-Client-Console/trunk/lib/RT/Client/Console/Session/Ticket/Transactions.pm
==============================================================================
--- RT-Client-Console/trunk/lib/RT/Client/Console/Session/Ticket/Transactions.pm	(original)
+++ RT-Client-Console/trunk/lib/RT/Client/Console/Session/Ticket/Transactions.pm	Sun Dec 30 18:28:09 2007
@@ -150,7 +150,7 @@
 
             my ($textstart, $cursorpos) = (0, 0);
             my $positions = $heap->{positions}[$idx];
-            if (defined $positions) {
+            if (defined $positions && defined ($positions->{array}[$positions->{current}])) {
                 ($textstart, $cursorpos) = @{$positions->{array}[$positions->{current}]};
             }
             print STDERR "+++ SCROLL : text start : $textstart\n";
@@ -304,4 +304,4 @@
 }
 
 
-1;
+1



More information about the Bps-public-commit mailing list