Skip to content
Snippets Groups Projects
Commit 21d48438 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

avoid NPE when LN not in LDevice

parent 3c487bea
No related branches found
No related tags found
1 merge request!11Resolve "complete validation by NSD"
Pipeline #1281 passed
...@@ -1576,6 +1576,10 @@ public class DataObjectPresenceConditionValidator { ...@@ -1576,6 +1576,10 @@ public class DataObjectPresenceConditionValidator {
// The attribute ldNs shall be a DataAttribute of the name plate NamPlt of the LOGICAL- NODE-ZERO (LLN0). // The attribute ldNs shall be a DataAttribute of the name plate NamPlt of the LOGICAL- NODE-ZERO (LLN0).
for( AnyLN anyLN : lNodeType.getReferredByAnyLN() ) { for( AnyLN anyLN : lNodeType.getReferredByAnyLN() ) {
if(( anyLN.getParentLDevice() == null ) || ( anyLN.getParentLDevice().getLN0() == null )) {
// TODO: error message ?
continue;
}
String ldNs = null; String ldNs = null;
doType = doType =
anyLN anyLN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment