Automated import from //branches/cupcake/...@141550,141550
Jaikumar Ganesh [Wed, 25 Mar 2009 00:25:38 +0000 (17:25 -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);
                 }