Skip to content

Should add null check when put data into concurrenthashmap #526

@jdneo

Description

@jdneo

The code here:
https://github.com/Microsoft/ApplicationInsights-Java/blob/v1.0.9/core/src/main/java/com/microsoft/applicationinsights/internal/util/MapUtil.java#L43

put data into a ConCurrentHashMap but does not have null check.

which will casue an NPE error if the entry.getValue() is null.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions