- ModelAPI_Session::get()->validators()->registerUnconcealment(
- aRes, aNewPersistent ? FeaturePtr() : aBase);
- myRegistered.insert(anObj);
+ if (aRes.get()) { // this may be on first update after "open"
+ ModelAPI_Session::get()->validators()->registerUnconcealment(
+ aRes, aNewPersistent ? FeaturePtr() : aBase);
+ myRegistered.insert(anObj);
+ }