Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit ca2092a

Browse files
authored
Catch exception when version code is 1 (debug builds) (#2980)
1 parent 20b58b2 commit ca2092a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/utils/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static String versionCodeToDate(final @NonNull Context context, final int
106106
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
107107
formatted = format.format(cal.getTime());
108108

109-
} catch (StringIndexOutOfBoundsException e) {
109+
} catch (StringIndexOutOfBoundsException | NumberFormatException e) {
110110
formatted = context.getString(R.string.settings_version_developer);
111111
}
112112

0 commit comments

Comments
 (0)