Skip to content

Commit c475694

Browse files
authored
Set version name to "unknown" if not found in manifest (#870)
1 parent dd3641c commit c475694

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parse/src/main/java/com/parse/ManifestInfo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public static String getVersionName() {
6161
versionName = getPackageManager().getPackageInfo(getContext().getPackageName(), 0).versionName;
6262
} catch (NameNotFoundException e) {
6363
PLog.e(TAG, "Couldn't find info about own package", e);
64+
versionName = "unknown";
6465
}
6566
}
6667
}

0 commit comments

Comments
 (0)