Skip to content

Commit

Permalink
OPPIA-1643 - Add extra condition if tracker uuid is null
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoMoreta committed Aug 26, 2024
1 parent 0c0cf37 commit aa6a981
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.joda.time.DateTime;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
Expand Down Expand Up @@ -98,8 +99,8 @@ public List<TrackerLog> getTrackers(Context ctx, long courseId, long userId) {
NodeList actTrackers = document.getFirstChild().getChildNodes();
for (int i = 0; i < actTrackers.getLength(); i++) {
NamedNodeMap attrs = actTrackers.item(i).getAttributes();
String uuid = attrs.getNamedItem(NODE_UUID).getTextContent();
if (uuidList.contains(uuid)) {
Node uuid = attrs.getNamedItem(NODE_UUID);
if (uuid != null && uuidList.contains(uuid.getTextContent())) {
continue;
}

Expand Down

0 comments on commit aa6a981

Please sign in to comment.