Skip to content

Commit

Permalink
fix #21519 - AIOOBE
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18310 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Nov 5, 2021
1 parent d932e71 commit 27c7a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/openstreetmap/josm/plugins/PluginListParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public List<PluginInformation> parse(InputStream in) throws PluginListParseExcep
for (String line = r.readLine(); line != null; line = r.readLine()) {
if (line.startsWith("\t")) {
final String[] keyValue = line.split("\\s*:\\s*", 2);
manifest.put(new Attributes.Name(keyValue[0].substring(1)), keyValue[1]);
if (keyValue.length >= 2)
manifest.put(new Attributes.Name(keyValue[0].substring(1)), keyValue[1]);
continue;
}
addPluginInformation(ret, name, url, manifest);
Expand Down

0 comments on commit 27c7a62

Please sign in to comment.