Skip to content

DateFormatter is not null-safe#978

Merged
littleaj merged 3 commits into
microsoft:masterfrom
feigi:bugfix/BaseTelemetry-toString-not-nullsafe
Jul 18, 2019
Merged

DateFormatter is not null-safe#978
littleaj merged 3 commits into
microsoft:masterfrom
feigi:bugfix/BaseTelemetry-toString-not-nullsafe

Conversation

@feigi

@feigi feigi commented Jul 15, 2019

Copy link
Copy Markdown
Contributor

Fix #.
If the timestamp property is not set, a call to BaseTelemetry#toString will result in an NPE. This is irritating as for example IntelliJ's debugger and the Mockito mocking framework call #toString.

For significant contributions please make sure you have completed the following items:

  • [-] Design discussion issue #
  • [-] Changes in public surface reviewed
  • [-] CHANGELOG.md updated

@littleaj littleaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

Comment thread core/src/main/java/com/microsoft/applicationinsights/telemetry/BaseTelemetry.java Outdated
…/BaseTelemetry.java

Co-Authored-By: Arthur Little <1690572+littleaj@users.noreply.github.com>
@littleaj littleaj self-requested a review July 16, 2019 16:32

@littleaj littleaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax error

Comment thread core/src/main/java/com/microsoft/applicationinsights/telemetry/BaseTelemetry.java Outdated
@littleaj littleaj self-assigned this Jul 17, 2019
@littleaj littleaj added this to the 2.5.0-BETA++ milestone Jul 17, 2019
…/BaseTelemetry.java

Co-Authored-By: Arthur Little <1690572+littleaj@users.noreply.github.com>
@littleaj

Copy link
Copy Markdown
Contributor

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@littleaj littleaj self-requested a review July 18, 2019 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants