am 73db5f02: Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)" into gingerbread
Merge commit '73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a' into gingerbread-plus-aosp * commit '73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a': Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)
This commit is contained in:
@@ -34,7 +34,6 @@ public final class Bmgr {
|
||||
|
||||
private String[] mArgs;
|
||||
private int mNextArg;
|
||||
private String mCurArgData;
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
@@ -274,6 +273,10 @@ public final class Bmgr {
|
||||
}
|
||||
|
||||
private void printRestoreSets(RestoreSet[] sets) {
|
||||
if (sets == null || sets.length == 0) {
|
||||
System.out.println("No restore sets");
|
||||
return;
|
||||
}
|
||||
for (RestoreSet s : sets) {
|
||||
System.out.println(" " + Long.toHexString(s.token) + " : " + s.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user