Skip to content

Commit

Permalink
prevent NPE for primitive objects
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Aug 8, 2016
1 parent 8ab1d59 commit e4aea1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ else if (ERXRestUtils.isPrimitive(obj)) {
setAssociatedObject(null);
}
else {
if (_name == null) {
if (_name == null && classDescription != null) {
_name = classDescription.entityName();
}
setValue(obj);
Expand Down

0 comments on commit e4aea1e

Please sign in to comment.