Skip to content

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

@jamesdooleymsft

Description

@jamesdooleymsft

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions