Fixed *some* repos not being displayed (fixes #100 again).

This commit is contained in:
Felix Ableitner 2014-08-28 19:20:11 +02:00
parent df14692fdd
commit b74a6bd151
1 changed files with 2 additions and 2 deletions

View File

@ -456,8 +456,8 @@ public class RestApi implements SyncthingService.OnWebGuiAvailableListener {
r.Invalid = json.getString("Invalid");
r.Nodes = new ArrayList<Node>();
JSONArray nodes = json.getJSONArray("Nodes");
for (int j = 0; i < nodes.length(); i++) {
JSONObject n = nodes.getJSONObject(i);
for (int j = 0; j < nodes.length(); j++) {
JSONObject n = nodes.getJSONObject(j);
String id = n.getString("NodeID");
for (Node n2 : getNodes()) {
if (n2.NodeID.equals(id)) {