rjy7 2010-07-26 18:40:28 +00:00
parent d277692365
commit 37c2990bba

View file

@ -360,8 +360,11 @@ are well formed.
Field field = fields.get(fieldName); Field field = fields.get(fieldName);
List<String> copyOfN3 = new ArrayList<String>(); List<String> copyOfN3 = new ArrayList<String>();
for( String str : field.getAssertions()){ List<String> assertions = field.getAssertions();
copyOfN3.add(str); if (assertions != null) {
for( String str : field.getAssertions()){
copyOfN3.add(str);
}
} }
out.put( fieldName, copyOfN3 ); out.put( fieldName, copyOfN3 );
} }
@ -374,8 +377,11 @@ are well formed.
Field field = fields.get(fieldName); Field field = fields.get(fieldName);
List<String> copyOfN3 = new ArrayList<String>(); List<String> copyOfN3 = new ArrayList<String>();
for( String str : field.getRetractions()){ List<String> retractions = field.getRetractions();
copyOfN3.add(str); if (retractions != null) {
for( String str : field.getRetractions()){
copyOfN3.add(str);
}
} }
out.put( fieldName, copyOfN3 ); out.put( fieldName, copyOfN3 );
} }