commit | 2259ae3d601c030c3371066c45c4627eafdb5ab4 | [log] [tgz] |
---|---|---|
author | danielwbhuang <danielwbhuang@google.com> | Fri Jul 02 17:41:05 2021 +0800 |
committer | danielwbhuang <danielwbhuang@google.com> | Fri Jul 02 17:41:05 2021 +0800 |
tree | a02088ca955f2ab31aad58fdc2c40f57b1d80bde | |
parent | 567060e5e1eb2d2044ed37341c067d41d96ee02e [diff] |
[Fixed] NumberFormatException: For input string: "Optional[-1]" 1. getVersion() is Optional<String> and it needs to be converted to String. 2. Version should not be empty and it isn't suitable to use default value in here, so we directly use Optional.get(). 3. NoSuchElementException will tell us that rawXml missed "Version". Test: manual Bug: 192577104 Change-Id: I43494d7a2c3c1346a9cc01a78b1e005fb4e82764