Skip to content

Commit

Permalink
chack list length
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jun 19, 2023
1 parent aed22bf commit 099eded
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,15 @@ private void saveLocal() {
// String[] source = base.getGitSelfSource();

for (String key : database.keySet()) {
VitaminElement e = database.get(key).get(0);
String size = database.get(key).size() + "";
String URL = (String) getConfiguration(e.name).get("source");
csv += key + "," + size + "," + URL + "\n";
ArrayList<VitaminElement> list = database.get(key);
if(list.size()>0) {
VitaminElement e = list.get(0);
String size = database.get(key).size() + "";
String URL = (String) getConfiguration(e.name).get("source");
csv += key + "," + size + "," + URL + "\n";
}else {
System.out.println("Failure on "+key);
}
}


Expand Down

0 comments on commit 099eded

Please sign in to comment.