Return 0 size for when there is no code section
After splitting into dex per file, we might have dex files that has no code sections
Change-Id: I62ac4f4175383c99bd796d7a56932ac7969ba1b4
diff --git a/tools/compare_apk_sizes.py b/tools/compare_apk_sizes.py
index 78327c2..a8137c2 100755
--- a/tools/compare_apk_sizes.py
+++ b/tools/compare_apk_sizes.py
@@ -64,6 +64,8 @@
# - Code: 264 / 4
splits = line.split(' ')
return int(splits[3])
+ # Some classes has no code.
+ return 0
class FileInfo:
def __init__(self, path, root, use_code_size):