This is a small fix I was going to make for OME Files (see MR !116). It prevents the addition of null references to the model which would cause problems later on when traversing the model data after the initial import. Should not be seen in normal use, but it protects against unintentional incorrect use. Returns a failure status as for other failure scenarios, so the caller will be notified the addition failed should they care to check.
Makes sense to return a failed status rather than allow the addition. Happy for this to be merged, there should be no negative impact or regressions from this addition.
This is a small fix I was going to make for OME Files (see MR !116). It prevents the addition of null references to the model which would cause problems later on when traversing the model data after the initial import. Should not be seen in normal use, but it protects against unintentional incorrect use. Returns a failure status as for other failure scenarios, so the caller will be notified the addition failed should they care to check.