for (int j=0; j<nCounter.size(); j++) {\r
if (abortCount)\r
return;\r
- if (nCounter.get(j).getGuid().equals(records.get(i).notebookGuid)) {\r
+ if (records.get(i).active && nCounter.get(j).getGuid().equals(records.get(i).notebookGuid)) {\r
nCounter.get(j).setCount(nCounter.get(j).getCount()+1);\r
found = true;\r
j=nCounter.size();\r
}\r
}\r
- if (!found) {\r
+ if (!found && records.get(i).active) {\r
NotebookCounter newCounter = new NotebookCounter();\r
newCounter.setGuid(records.get(i).notebookGuid);\r
newCounter.setCount(1);\r