summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2010-10-01 11:30:50 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-01 11:30:50 -0700
commit73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a (patch)
tree58cbf57cd6e2b79a87c2f0feff02569dea7a0e0f /cmds
parent469b80336368bef3742e97c15e9017c1f2d404ae (diff)
parent04686f428995fde3f6f5f5f12ccdd135f885ac84 (diff)
downloadframeworks_base-73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a.zip
frameworks_base-73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a.tar.gz
frameworks_base-73db5f02a1e1a3fc3514ddbff1c28e22fec3aa7a.tar.bz2
Merge "Fix bug #3055578 ("adb shell bmgr list sets" generates NPE and cannot be run again when device has no account setup)" into gingerbread
Diffstat (limited to 'cmds')
-rw-r--r--cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
index 39b3a20..37c8ad0 100644
--- a/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
+++ b/cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
@@ -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);
}