Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-5
-
Fix Version/s: 1.0-RC-1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When calling getProperty() with a property that exists but has the value null you get a MissingPropertyException.
You're double checking the key by calling result.get after result.containskey although you already know that result.get returned null.
You can replace
> if (result.containsKey(property))
> return result.get(property);
by
> if (result.containsKey(property))
> return null;
which speed things up.
I slightly changed your patch.