Skip to content

Commit 2aa19f9

Browse files
committed
Reverting remove null check in setSampleRate()
1 parent 39f473b commit 2aa19f9

File tree

1 file changed

+5
-2
lines changed
  • core/src/main/java/com/microsoft/applicationinsights/internal/schemav2

1 file changed

+5
-2
lines changed

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Envelope.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,11 @@ public double getSampleRate() {
139139
/**
140140
* Sets the SampleRate property.
141141
*/
142-
public void setSampleRate(double value) {
143-
this.sampleRate = value;
142+
public void setSampleRate(Double value) {
143+
if (value != null) {
144+
this.sampleRate = value;
145+
}
146+
144147
}
145148

146149
/**

0 commit comments

Comments
 (0)