Mantis - tweak
Viewing Issue Advanced Details
1943 Any minor always 10-11-05 15:33 12-11-05 06:06
jens  
andreas  
normal  
resolved  
fixed  
none    
none  
0001943: container can be nil in CTreeItemCostume>>selectedColor
CTreeItemCostume>>selectedColor
    "Answer the selectedColor of the receiver"
    <bewareOf: #selectedColorChanged>
    ^self propertyValueAt: #selectedColor ifAbsent:[container selectionColor]

containter can be nil, so you should check for it:

    ^self propertyValueAt: #selectedColor ifAbsent:[
        container
            ifNotNil: [ container selectionColor]
            ifNil: [Color blue "or some default color" ]]

Notes
(0003275)
andreas   
12-11-05 06:06   
Now fixed.