commit | 28788fed3db121a62cd8c49287158cbc446e5c9d | [log] [tgz] |
---|---|---|
author | sonugupta-huawei <sonu.gupta1289@gmail.com> | Thu Jan 11 15:47:16 2018 +0530 |
committer | sonugupta-huawei <sonu.gupta1289@gmail.com> | Thu Jan 11 15:47:30 2018 +0530 |
tree | a21fff24290a0eeca58da718509c2720bb90c346 | |
parent | b4a391cf09d57e350aa6d9f8e95df9390351057f [diff] |
[ONOS-7366]YANG Runtime: Exception while decoding XML Change-Id: Ic3447a5c6bcc110d59710e3b661016977cafefea
diff --git a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/LeafContextUtil.java b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/LeafContextUtil.java index 07c7127..6e7d008 100644 --- a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/LeafContextUtil.java +++ b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/LeafContextUtil.java
@@ -118,7 +118,7 @@ try { YangBits e = ((YangBits) typeInfo .getDataTypeExtendedInfo()); - String[] bitSet = v.split(SPACE); + String[] bitSet = v.trim().split(SPACE); Set set = new HashSet(Arrays.asList(bitSet)); if (e.getBitNameMap().keySet().containsAll(set)) { return v;