MYFACES-3780 _ComponentAttributesMap return null when no property descriptor is available and null value is passed to map (revert fix because makes TCK fail)
diff --git a/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java b/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
index 313fb57..3a9af0b 100755
--- a/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
+++ b/api/src/main/java/javax/faces/component/_ComponentAttributesMap.java
@@ -574,10 +574,10 @@
_PropertyDescriptorHolder propertyDescriptor = getPropertyDescriptor(key);
if (propertyDescriptor == null)
{
- //if (value == null)
- //{
- // throw new NullPointerException("value is null for a not available property: " + key);
- //}
+ if (value == null)
+ {
+ throw new NullPointerException("value is null for a not available property: " + key);
+ }
}
else
{