We need to return a null RODRecordList when the default value is null (as opposed to a list with a single null value), because that's what everyone is expecting.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1718 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-09-24 16:23:12 +00:00
parent d4b40bc06f
commit 97105ac001
1 changed files with 5 additions and 7 deletions

View File

@ -67,13 +67,11 @@ public class RefMetaDataTracker {
return map.get(luName);
else {
if ( defaultValue == null ) {
return new RODRecordList<ReferenceOrderedDatum>(luName, Collections.singletonList(defaultValue), null);
} else {
return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(),
Collections.singletonList(defaultValue),
defaultValue.getLocation());
}
if ( defaultValue == null )
return null;
return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(),
Collections.singletonList(defaultValue),
defaultValue.getLocation());
}
}
/**