Revision 62398
Added by Michele Artini over 1 year ago
FairSharingIterator.java | ||
---|---|---|
102 | 102 |
for (final Object o : doc.selectNodes("//grants")) { |
103 | 103 |
addOrganizationInfo((Element) o); |
104 | 104 |
} |
105 |
fix_null_values(doc); |
|
105 | 106 |
queue.add(doc.asXML()); |
106 | 107 |
} |
107 | 108 |
|
... | ... | |
133 | 134 |
for (final Object o : doc.selectNodes("//organisation_links")) { |
134 | 135 |
((Node) o).detach(); |
135 | 136 |
} |
137 |
fix_null_values(doc); |
|
136 | 138 |
|
137 | 139 |
savedOrgs.put(orgId, doc.getRootElement()); |
138 | 140 |
} |
... | ... | |
144 | 146 |
n.add(savedOrgs.get(orgId).createCopy()); |
145 | 147 |
} |
146 | 148 |
|
149 |
private void fix_null_values(final Document doc) { |
|
150 |
for (final Object o : doc.selectNodes("//*[text() = 'null']")) { |
|
151 |
((Element) o).setText(""); |
|
152 |
} |
|
153 |
} |
|
154 |
|
|
147 | 155 |
} |
Also available in: Unified diff
fixed a problem with null values