@Override
protected void open(ExecutionEvent event, IndividualsAssociation entity) {
+ if(entity==null || entity.getAssociatedSpecimenOrObservation()==null){
+ MessagingUtils.messageDialog("No specimens found", this, "No specimens found for the selected object. (Maybe there are unsaved changes)");
+ return;
+ }
SpecimenOrObservationBase associatedSpecimenOrObservation = entity.getAssociatedSpecimenOrObservation();
if(associatedSpecimenOrObservation!=null){
UUID specimenUuid = associatedSpecimenOrObservation.getUuid();