Project

General

Profile

Bug #4971

Updated by Greg Shah over 3 years ago

When an non-fixed extent variable of type @object@ is resized the actual object type previously saved in @dynamicArrayType@ is reset in @ArrayAssigner@ (#1125), the comment on that being the type is not needed anymore.

Problem is, such variable can be set back to a non-fixed extent using unknown/null as input to @extent@ function and then it can be set to another fix extent and so on, there is no limit on how many time the variable can be moved from undetermined to fixed size and back. The issue being, the next time when the array is resized the object type is no longer known and we and-up with an @object@ that has no type - this leads to NPE when assigned later on.

Attempted a fix in 4384g rev #11706 but maybe I'm missing something here so better to double check...

The test that was failing for us: oo/openedge/core/assert/object.p

Back