Index: base/android/java/src/org/chromium/base/BuildInfo.java |
diff --git a/base/android/java/src/org/chromium/base/BuildInfo.java b/base/android/java/src/org/chromium/base/BuildInfo.java |
index 23140519b516a9e51ab58cbac72b50a0c3c48869..81a8f3455906f37ec26b553e1ae786a35805a90d 100644 |
--- a/base/android/java/src/org/chromium/base/BuildInfo.java |
+++ b/base/android/java/src/org/chromium/base/BuildInfo.java |
@@ -67,7 +67,10 @@ public class BuildInfo { |
try { |
PackageManager pm = context.getPackageManager(); |
PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0); |
- msg = "" + pi.versionCode; |
+ msg = ""; |
+ if (pi.versionCode > 0) { |
+ msg = Integer.toString(pi.versionCode); |
+ } |
} catch (NameNotFoundException e) { |
Log.d(TAG, msg); |
} |