summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmds/content/src/com/android/commands/content/Content.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/content/src/com/android/commands/content/Content.java b/cmds/content/src/com/android/commands/content/Content.java
index 3687f10f9974..716bc5f24631 100644
--- a/cmds/content/src/com/android/commands/content/Content.java
+++ b/cmds/content/src/com/android/commands/content/Content.java
@@ -535,7 +535,9 @@ public class Content {
@Override
public void onExecute(IContentProvider provider) throws Exception {
Bundle result = provider.call(null, mMethod, mArg, mExtras);
- final int size = result.size(); // unpack
+ if (result != null) {
+ result.size(); // unpack
+ }
System.out.println("Result: " + result);
}
}