Skip to content

Commit c7a847a

Browse files
committed
Closing coding hole where exception can result in a null build number
Signed-off-by: Adam Farley <adfarley@ibm.com>
1 parent 122955d commit c7a847a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/VersionInfo.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class VersionInfo {
218218
try {
219219
build = or0(matched223, 'build')
220220
} catch(IllegalArgumentException e) {
221-
// Ignore as 'build' is not in the given regex
221+
build = 0
222222
}
223223

224224
if (matched223.group('opt') != null) {

0 commit comments

Comments
 (0)