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,15 +67,13 @@ public class RefMetaDataTracker {
return map.get(luName); return map.get(luName);
else { else {
if ( defaultValue == null ) { if ( defaultValue == null )
return new RODRecordList<ReferenceOrderedDatum>(luName, Collections.singletonList(defaultValue), null); return null;
} else {
return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(), return new RODRecordList<ReferenceOrderedDatum>(defaultValue.getName(),
Collections.singletonList(defaultValue), Collections.singletonList(defaultValue),
defaultValue.getLocation()); defaultValue.getLocation());
} }
} }
}
/** /**
* @see this.lookup * @see this.lookup
* @param name * @param name