diff options
author | vv770d <vv770d@att.com> | 2022-02-10 21:48:20 +0000 |
---|---|---|
committer | vv770d <vv770d@att.com> | 2022-02-11 15:38:55 +0000 |
commit | 2fe7134ac2bb2f4c10a6acf0164a4653393a5612 (patch) | |
tree | 32ced5ad4f051c22d0a621fc4eff75b92fd01f0c /mod/runtimeapi/runtime-core/src/main/java/org/onap | |
parent | 0d1b8727a44b0add010b79e495b799e538057d20 (diff) |
[DCAEMOD/Runtime] Fix NFE error on BP generation1.2.4-mod-runtimeapiistanbul
Change-Id: I71bb73d482221731a0355f01670b4d45720af273
Signed-off-by: vv770d <vv770d@att.com>
Issue-ID: DCAEGEN2-3028
Issue-ID: DCAEGEN2-3077
Signed-off-by: vv770d <vv770d@att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-core/src/main/java/org/onap')
-rw-r--r-- | mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java index 7154cae..d564550 100644 --- a/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java +++ b/mod/runtimeapi/runtime-core/src/main/java/org/onap/dcae/runtime/core/FlowGraphParser.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019,2022 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,7 +50,8 @@ public class FlowGraphParser { } private static int createBlueprintVersion() { - DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyMMddHHmm").withZone(ZoneId.of("UTC")); + // Removed year from the text to fix invalid integer issue (DCAEGEN2-3028) + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMddHHmm").withZone(ZoneId.of("UTC")); Instant instant = Instant.now(); String timestamp = formatter.format(instant); return Integer.parseInt(timestamp); |