Informix Error -50402
Cause and resolution
INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is non-NULL.
Failed to provide a non-NULL element to INSERT or SET for an ixList, ixMultiSet, or ixSet object. A non-NULL element is required. Inserting or setting (replacing) a NULL element does not cause a change to ixList, ixMultiSet, or ixSet objects.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-50402 is raised by the ixList class in the Window Painter GUI builder library — per the official guidance:
Failed to provide a non-NULL element to INSERT or SET for an ixList, ixMultiSet, or ixSet object. A non-NULL element is required. Inserting or setting (replacing) a NULL element does not cause a change to ixList, ixMultiSet, or ixSet objects.
- INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is non-NULL, per the official guidance — the direct, documented condition.
Solutions / Resolution
- Adjust the calling code to respect the constraint named in the message, per the official guidance — no other resolution is documented.
Examples
N/A
No specific triggering statement is documented beyond the class-library condition described above.
Diagnostic Checks
- Check the specific value, object state, or call sequence that
ixListflags here, against the constraint the official guidance describes.
Related Errors / Related Topics
- -50405 — "Item number for SET must be within the existing size of the ixList, ixMultiSet, or ixSet." Another
ixList-related condition in this set. - -50403 — "INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is of the same class or derived from the ixValue object that was specified in the constructor." Another
ixList-related condition in this set.
INSERT and SET in ixList, ixMultiset, and ixSet are only allowed if the ixValue object is non-NULL.