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:
parent
d4b40bc06f
commit
97105ac001
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue