Bug fix for NullPointerException

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3256 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-04-26 05:02:09 +00:00
parent f5a3b128c8
commit 8f2bfac7a6
1 changed files with 2 additions and 5 deletions

View File

@ -321,17 +321,14 @@ public class RefMetaDataTracker {
} else {
for ( Map.Entry<String, RODRecordList> datum : map.entrySet() ) {
final String rodName = datum.getKey();
if ( rodName.startsWith(luName) ) {
if ( datum.getValue() != null && rodName.startsWith(luName) ) {
if ( trackData == null ) trackData = new RODRecordListImpl(name);
//System.out.printf("Adding bindings from %s to %s at %s%n", rodName, name, datum.getValue().getLocation());
((RODRecordListImpl)trackData).add(datum.getValue(), true);
}
}
}
if ( trackData != null )
return trackData;
else
return null;
return trackData;
}
/**