Index: build/android/gyp/jar_toc.py |
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py |
index 3cafd6e2937daf7b92c1d551c1db72ef6b884d27..6d810088ae160526bb48e6f33bd7bcd8157a44dc 100755 |
--- a/build/android/gyp/jar_toc.py |
+++ b/build/android/gyp/jar_toc.py |
@@ -72,8 +72,10 @@ def ExtractToc(disassembled_classes): |
def UpdateToc(jar_path, toc_path): |
classes = GetClassesInZipFile(zipfile.ZipFile(jar_path)) |
- javap_output = CallJavap(classpath=jar_path, classes=classes) |
- toc = ExtractToc(javap_output) |
+ toc = '' |
+ if len(classes) != 0: |
+ javap_output = CallJavap(classpath=jar_path, classes=classes) |
+ toc = ExtractToc(javap_output) |
with open(toc_path, 'w') as tocfile: |
tocfile.write(toc) |