Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337918 - Calling isPropertyEnabled with an element property causes NPE if property not read
Summary: Calling isPropertyEnabled with an element property causes NPE if property not...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 18:35 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2011-02-22 18:35:00 EST
If an element property has not been read yet, calling isPropertyEnabled will cause NPE. The isPropertyEnabled method needs to call refresh on the property if this is the first access.
Comment 1 Konstantin Komissarchik CLA 2011-02-22 23:23:52 EST
Fixed in 0.2.1 and 0.3 streams.
Comment 2 Shenxue Zhou CLA 2011-02-25 11:58:54 EST
Verified.