Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336588

Summary: CompletionComboRidget: NPE caused by "null" binding when Output Only is set
Product: [RT] Riena Reporter: Elias Volanakis <elias>
Component: ridgetAssignee: Elias Volanakis <elias>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Elias Volanakis CLA 2011-02-08 02:42:48 EST
When using a CompletionCombo / CompletionComboRidget the following code causes an NPE:

comboRidget.setOutputOnly(true);
comboRidget.updateFromModel();
// later
comboRidget.setOutputOnly(false);
comboRidget.updateFromModel(); // NPE because comboRidget#listBindingExternal == null

This is caused by a workaround we added earlier to handle some output-only edge case (351). Basically we are unbinding / rebinding internally. Will reconsider if we really need this.
Comment 1 Elias Volanakis CLA 2011-02-08 21:05:52 EST
Resolved -- had to change the SelectionTypeEnforcer mechanism quite a bit. Tests and CComboSubModuleController seem to work ok though.