Automated import from //branches/donutburger/...@141551,141551
Jaikumar Ganesh [Wed, 25 Mar 2009 03:32:02 +0000 (20:32 -0700)]
src/com/android/phone/BluetoothAtPhonebook.java

index f215591..6e14a09 100644 (file)
@@ -212,7 +212,7 @@ public class BluetoothAtPhonebook {
                 }
 
                 // More sanity checks
-                if (index2 < index1 || index2 > pbr.cursor.getCount()) {
+                if (index1 <= 0 || index2 < index1 || index2 > pbr.cursor.getCount()) {
                     return new AtCommandResult(AtCommandResult.ERROR);
                 }