cpp_client_telemetry icon indicating copy to clipboard operation
cpp_client_telemetry copied to clipboard

Calling getType() on a new EventProperties object hits a NullPointerException

Open jamesdooleymsft opened this issue 10 months ago • 0 comments

Describe your environment. Android, Java code.

Steps to reproduce.

EventProperties props = new EventProperties("MyEvent", DiagnosticLevel.DIAG_LEVEL_OPTIONA);
String type = props.getType();

What is the expected behavior? getType() returns an empty or unknown type.

What is the actual behavior? java.lang.NullPointerException since the underlying EventPropertiesStorage never initialized eventType

Additional context. All other class member variables of EventPropertiesStorage are initialized - only eventType is uninitializeed.

jamesdooleymsft avatar Feb 11 '25 01:02 jamesdooleymsft