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:
parent
f5a3b128c8
commit
8f2bfac7a6
|
|
@ -321,17 +321,14 @@ public class RefMetaDataTracker {
|
||||||
} else {
|
} else {
|
||||||
for ( Map.Entry<String, RODRecordList> datum : map.entrySet() ) {
|
for ( Map.Entry<String, RODRecordList> datum : map.entrySet() ) {
|
||||||
final String rodName = datum.getKey();
|
final String rodName = datum.getKey();
|
||||||
if ( rodName.startsWith(luName) ) {
|
if ( datum.getValue() != null && rodName.startsWith(luName) ) {
|
||||||
if ( trackData == null ) trackData = new RODRecordListImpl(name);
|
if ( trackData == null ) trackData = new RODRecordListImpl(name);
|
||||||
//System.out.printf("Adding bindings from %s to %s at %s%n", rodName, name, datum.getValue().getLocation());
|
//System.out.printf("Adding bindings from %s to %s at %s%n", rodName, name, datum.getValue().getLocation());
|
||||||
((RODRecordListImpl)trackData).add(datum.getValue(), true);
|
((RODRecordListImpl)trackData).add(datum.getValue(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( trackData != null )
|
|
||||||
return trackData;
|
return trackData;
|
||||||
else
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue