Skip to content

getMemberValueByMemberName gives cast exception if the value is a BigDecimal object #14

Open
@cedricblom

Description

@cedricblom

Using getMemberValueByMemberName on a member of type BigDecimal results in a ClassCastException since commit 82e06f7.

Potential solution

Replace code on line 33 return MxObject.getValue(getContext(), AttributeName);, with its predecessor:

Object memberValue = MxObject.getValue(getContext(), AttributeName);
if (memberValue != null) {
	return memberValue.toString();
}
return null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions