FeatureDescriptor's setValue method will not accept a null value

Description

In the getFeatureDescriptors() method in org.activiti.engine.impl.javax.el,MapELResolver.java at line 112 there is a possibility that the setValue() method call will attempt to store a null value:

feature.setValue(TYPE, key == null ? null : key.getClass());

Setting a null value is not allowed; see this Java defect report asking that the JavaDoc be updated to note that fact: http://bugs.java.com/bugdatabase/view_bug.do;jsessionid=fcde7a34696171762332d5a59902?bug_id=4870242

Would a better version of this statement be?

feature.setValue(TYPE, key == null ? "null" : key.getClass()

Environment

None

Assignee

Tijs Rademakers

Reporter

David Malkovsky

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure