Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001943 [tweak] Any minor always 10-11-05 15:33 12-11-05 06:06
Reporter jens View Status public  
Assigned To andreas
Priority normal Resolution fixed  
Status resolved  
Summary 0001943: container can be nil in CTreeItemCostume>>selectedColor
Description 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" ]]
Additional Information
Attached Files

- Relationships

- Notes
(0003275 - 10 - 10 - 10 - 10 - 10 - 10)
andreas
12-11-05 06:06

Now fixed.
 

- Issue History
Date Modified Username Field Change
10-11-05 15:33 jens New Issue
12-11-05 06:06 andreas Status new => resolved
12-11-05 06:06 andreas Resolution open => fixed
12-11-05 06:06 andreas Assigned To  => andreas
12-11-05 06:06 andreas Note Added: 0003275


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
35 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker