if (eventSource.equals(selection_Ref)){
getEntity().setCitation(selection_Ref.getEntity());
- ReferenceType newRefType = getEntity().getCitation().getType();
- if (refType != null && refType.isDynamic() ^ getEntity().getCitation().getType().isDynamic()) {
+
+ ReferenceType newRefType = getEntity().getCitation() != null? getEntity().getCitation().getType(): null;
+ if (refType != null && refType.isDynamic()^(newRefType!= null && newRefType.isDynamic()) ){
this.refresh();
-// this.getParentElement().refresh();
}
refType = newRefType;
}else if (eventSource.equals(microReference)){