Skip to content

MetadataUtility class doesn't check the LastException property #116

@mathiasbl

Description

@mathiasbl

The MetadataUtility does calls to retrieve metadata. However, for example, when the client is being throttled and the retry limit is reached the response you receive is null. The MetadataUtility doesn't check this and just returns null causing some null reference errors in your codebase or errors like 'entity or attribute' does not exist.

When the response is null it should check whether it has a LastException before assuming the entity doesn't exist.

Example line here:

RetrieveAllEntitiesResponse response = (RetrieveAllEntitiesResponse)svcAct.Command_Execute(request, "GetAllEntityMetadata");

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions